Is this the expected behavior - that the loop() function will block (and eventually time out) unless I publish data to its subscribed topic once? Or am I missing something. I'm using the example code in minimqtt_pub_sub_nonblocking_esp32spi.py from the latest v6 of the CircuitPython IO library (at https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/blob/85d9d846f3fd8f9d3ee8ae354c5c34d2e2970c1a/examples/esp32spi/minimqtt_pub_sub_nonblocking_esp32spi.py).
Thank you!
- Code: Select all | TOGGLE FULL SIZE
while True:
mqtt_client.loop()
mqtt_client.publish(topic, value)
time.sleep(5)