Remove port parameter

This commit is contained in:
Eden Kirin
2023-04-21 17:56:35 +02:00
parent fd71fa276c
commit 270f742c95
4 changed files with 10 additions and 14 deletions

View File

@ -1,13 +1,12 @@
from fh_sdk import Direction, FairHopper, PositionError
FAIRHOPPER_HOST = "http://127.0.0.1"
FAIRHOPPER_PORT = 8010
FAIRHOPPER_HOST = "https://api.fairhopper.mjerenja.com"
def main() -> None:
fh = FairHopper(FAIRHOPPER_HOST, FAIRHOPPER_PORT)
fh = FairHopper(FAIRHOPPER_HOST)
print(f"Pinging FairHopper server on {FAIRHOPPER_HOST}:{FAIRHOPPER_PORT}")
print(f"Pinging FairHopper server on {FAIRHOPPER_HOST}")
res = fh.ping()
print("Ping result:", res)
print()