import time
import network
from machine import Pin
from umqtt import MQTTClient
# # MQTT server Parameters
# MQTT_CLIENT_ID = "micropython-weather-demo"
# MQTT_BROKER = "broker.mqttdashboard.com"
# MQTT_USER = ""
# MQTT_PASSWORD = ""
# MQTT_TOPIC = "wokwi-weather"
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.skeep(0.1)
print("Connected!")