How do apps talk to an ESP32 that sleeps? Device twins explained
A battery ESP32 sleeps most of the time, while the app expects to ask it for its state whenever it wants. Why that fails from the first device, and how a device twin with desired and reported state fixes it.