import ESP32wifi
import time
from umqtt.robust import MQTTClient

ubidotsToken = "BBUS-pqwnvN7njzDaHvMxJXkpMjOu0Ix1HX"
clientID = "dandebharath09"

ESP32wifi.check_wifi()

print("Connecting to MQTT server... ",end="")
client = MQTTClient(clientID, "industrial.api.ubidots.com", 1883, user=ubidotsToken, password=ubidotsToken)
client.connect()
print("Connected!")