import network
import time
import urllib.urequests
print("Connecting to WiFi", end="")
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('Wokwi-GUEST', '')
while not sta_if.isconnected():
print(".", end="")
time.sleep(0.1)
print(" Connected!")
resp = urequests.get("https://wei.gateway.techfit.at/mqtt-broker-information")
res = resp.json()
print(res.get("host"))
print()