homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 307 forks source link

Improve deep sleep documentation #707

Closed gaetancollaud closed 3 years ago

luebbe commented 3 years ago

I wasn't sure about the deepsleep parameter, because I never used it. Is it really microseconds? If yes then LGTM :)

gaetancollaud commented 3 years ago

I wasn't sure about the deepsleep parameter, because I never used it. Is it really microseconds? If yes then LGTM :)

Yes, it's in microseconds. I had to go into the source code to find it. That's why I wanted to improve the doc.

There is also a possibility to use a pin as an interrupt to wake up. But I didn't go too much into details. I just wanted to have a simple example with a timer.

Source: https://github.com/homieiot/homie-esp8266/blob/develop/src/Homie.hpp#L73