I tried to use an Arduino implementation. Hours of digging through the source code later because half this stuff is undocumented I'm giving up, because the design choices are fundamentally stupid and broken. Why did I even try? Seriously. Sigh.
There are two problems. One, it doesn't work properly, possibly because of bugs in the underlying esp-open-sdk. Two, even if it worked, the TCP server class is not callback-driven and requires polling from the loop thread.
-
-
I'm trying a trivial test with esp-open-sdk where I just enable light sleep and do nothing. After 10 seconds it goes into sleep briefly, I see ping latencies increase to < DTIM interval (up to 300ms), but only for a split second, then it wakes up and stays awake forever.
-
Keep in mind that I do *not* want to force sleep. I just want to automatically sleep when everything is idle. This is how it's supposed to work according to that power management PDF from Espressif.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.