#-------------------------------------
# Modulo..: MQTT
# Descrip.: Prueba opciones de conexion
# - reconectar
# - conexion permanente
# - uasyncio
# Version.: 1.0 - 10.5.2025
# Ref.....: https://www.donskytech.com/micropython-mqtt-esp32-esp8266/
# https://boneskull.com/micropython-on-esp32-part-2/
#
# Observ..: -
#-------------------------------------
from umqtt.simple import MQTTClient
from mdbFunciones import *
conWiFi()
#---- MQTT ----
CLIENT_ID = "ESP32_S2_Escritorio"
# ---- MyQttHub ----
MQTT_SERVER = "node02.myqtthub.com"
MQTT_PORT = 1883
MQTT_USER = "mdbAdmin"
MQTT_PASS = "#Felipe2023"
SUSCRIBE1 = b"casa/interruptores/switch01/#"
PUBLICA1 = b"casa/interruptores/switch01"
#---- clientes MQTT ----
#mqtt1 = conMQTT(CLIENT_ID, MQTT_SERVER, MQTT_PORT, MQTT_USER, MQTT_PASS)