How to receive message from the cloud when using deep sleep
Posted: Wed Jul 10, 2019 8:06 am
Hi all,
I am quite new to ESP32 and would need some advise. My project requirements are as follows:
I have an ESP32 that goes to deep sleep and wakes up every one minute to check if there is any new data to receive from the cloud. On the other end, I have a mobile app that sends a message to the cloud. This message can be sent randomly at any time.
Previously, I was implementing this using MQTT. The mobile app publishes to a topic in CloudMQTT while the ESP32 is permanently connected to the MQTT broker and subscribes to this same topic. However this method only works it if I am constantly connected to the broker.
What is a better solution if I want to be able to sleep the ESP32 and wake up to check for new data inside the cloud? Thanks!
*Edited: Sorry, just realised that my question is similar to this:
https://www.esp32.com/viewtopic.php?f=2&t=10944
I am quite new to ESP32 and would need some advise. My project requirements are as follows:
I have an ESP32 that goes to deep sleep and wakes up every one minute to check if there is any new data to receive from the cloud. On the other end, I have a mobile app that sends a message to the cloud. This message can be sent randomly at any time.
Previously, I was implementing this using MQTT. The mobile app publishes to a topic in CloudMQTT while the ESP32 is permanently connected to the MQTT broker and subscribes to this same topic. However this method only works it if I am constantly connected to the broker.
What is a better solution if I want to be able to sleep the ESP32 and wake up to check for new data inside the cloud? Thanks!
*Edited: Sorry, just realised that my question is similar to this:
https://www.esp32.com/viewtopic.php?f=2&t=10944