ESP-32 Deep Sleep MQTT
Posted: Wed Dec 06, 2023 5:36 pm
Hi everybody,
First, thanks for the lot of contributions which helped me !
Please, I've got (perhaps a stupid) question :
I use ESP to read an DHT22 sensor and publish values onto MQTT topics (standalone mosquitto broquer)
My lan config uses a dhcp.
And I want to use deep sleep to make some tries for a battery supplyed hardware.
I know that after "awaking", the ESP restart from zero and execute void setup() (which also contains the esp_deep_sleep_start())
My question is : are the endless connectig and deconnecting (to dhcp and MQTT broque) requests dangerous for the mqtt broker or the dhcp of my box (I'm affraid, perhaps of some overflow somewher) ?
And second question : is this method of connecting every minutes for some seconds a "normal" usage of the deep sleep functionnality ?
Many thanks
Eric
First, thanks for the lot of contributions which helped me !
Please, I've got (perhaps a stupid) question :
I use ESP to read an DHT22 sensor and publish values onto MQTT topics (standalone mosquitto broquer)
My lan config uses a dhcp.
And I want to use deep sleep to make some tries for a battery supplyed hardware.
I know that after "awaking", the ESP restart from zero and execute void setup() (which also contains the esp_deep_sleep_start())
My question is : are the endless connectig and deconnecting (to dhcp and MQTT broque) requests dangerous for the mqtt broker or the dhcp of my box (I'm affraid, perhaps of some overflow somewher) ?
And second question : is this method of connecting every minutes for some seconds a "normal" usage of the deep sleep functionnality ?
Many thanks
Eric