setConfig does not take a "mode" param, and the docs are correct. But I can see how this is confusing to an esp8266 coder. the "opmode" is only changed indirectly by connect/scan/disconnect/startAP/stopAP.
mode is changing when changing phy and powersave like this ?!
Mhh, I'll have to look into this and see whether I can repro.
Update: I cannot repro. Can you help me understand how you get there?
and this dumps
Ooops, not good. Looks like a WDT reset, so something must take too long... I'll have to try and repro...
Update: repro is easy, bad DBG printout, and clearly a gap in the test coverage...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
setConfig does not take a "mode" param, and the docs are correct. But I can see how this is confusing to an esp8266 coder. the "opmode" is only changed indirectly by connect/scan/disconnect/startAP/stopAP.
Mhh, I'll have to look into this and see whether I can repro.
Update: I cannot repro. Can you help me understand how you get there?
Ooops, not good. Looks like a WDT reset, so something must take too long... I'll have to try and repro...
Update: repro is easy, bad DBG printout, and clearly a gap in the test coverage...
Thanks much for testing!!!