ITADN

Why isconnect() always seems to return False?

#177OpenNodi-Rubrum 创建于 2026-04-08
N
Nodi-Rubrumcommented
Why isconnect() always seems to return False? I have initialized MQTTClient, client.connect() called, main loop executes via asyncio.run(main(client)) as per the examples. ``` MPY: soft reboot Client! Connect? False Checking WiFi integrity. Got reliable connection Connecting to broker. ``` But checking client.isconnect() always seems to return False? "Client! Connect?" is where I am calling client.isconnected() explicitly after connect(). Even did a while loop thinking there was some type of timing issue until connect() returns value, but said loop executed forever.
2 条评论