How to receive MQTT messages after deep sleep?
Posted: Mon Jun 10, 2019 11:28 pm
Hi guys,
is it possible to subscribe to a MQTT topic and collect messages every time the ESP32 wakes up from deep sleep mode?
I'm using Arduino IDE and loop function is not used in deep sleep mode and cannot understand where I should insert the client.loop() call: in the setup?
I'm using this library: https://pubsubclient.knolleary.net/api.html
Thanks,
Max
is it possible to subscribe to a MQTT topic and collect messages every time the ESP32 wakes up from deep sleep mode?
I'm using Arduino IDE and loop function is not used in deep sleep mode and cannot understand where I should insert the client.loop() call: in the setup?
I'm using this library: https://pubsubclient.knolleary.net/api.html
Thanks,
Max