How to receive MQTT messages after deep sleep?

Maxyct
Posts: 1
Joined: Sun May 26, 2019 4:44 pm

How to receive MQTT messages after deep sleep?

Postby Maxyct » 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

Who is online

Users browsing this forum: No registered users and 17 guests