I came across esp8266::polledTimeout for the ESP8266 Arduino core in the NTP example. But I could not find any documentation.

It seems to be a template that is intended to eliminate manual time(out) comparisons with millis() (it has more options).

AFAIK there's nothing (yet) in the documentation https://arduino-esp8266.readthedocs.io/en/latest/, and the implementation at https://github.com/esp8266/Arduino/blob/master/cores/esp8266/PolledTimeout.h does not have a summary either.

The only thing I found is this example: https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/BlinkPolledTimeout/BlinkPolledTimeout.ino

I would like to know more about it's intended and practical use as well as limitations and alternatives.

  • Step one: Read the source code. Step two: ? Step three: Profit. – Majenko Oct 17 '19 at 18:37
  • @Majenko Are you saying that documentation is not needed (because you have 75k reputation) and you're not willing to help (why comment?), or that there indeed isn't any documentation that could answer my question? In other words: really? – handle Oct 17 '19 at 18:43
  • 1
    Any technical questions regarding the internal operation of a non-standard Arduino-like core should be addressed to the authors of said core. It is unlikely that anyone here knows what this is. github.com/esp8266/Arduino/issues – Majenko Oct 17 '19 at 18:46
  • 2
    I am saying that, since there is no documentation, all you can do is read the source code. That is all we will be able to do too. And we don't know what it is, because it's not Arduino. It's non-standard. The only people who know what they intended by writing it is the people that wrote it. – Majenko Oct 17 '19 at 18:49
  • Ok, I forgot for a moment that ESP8266 != Arduino. And you're right, it's probably too low-level for this SE. I'll create an Issue on GitHub as you suggest. Thanks for spelling it out ;-) – handle Oct 17 '19 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.