Page 2 of 3
Re: Auto-starting modules with ESP8266 Basic
Posted:
Fri Sep 09, 2016 7:27 pm
by Oldbod
That would be great. I've had a little dig and the reset reason is available. If we could choose to wait only on power on that would be a big help. I know it doesn't address the 'using an external device to shut off the power' scenario but selfishly for me it would really help.
Re: Auto-starting modules with ESP8266 Basic
Posted:
Fri Sep 09, 2016 7:43 pm
by Oldbod
Darn but i wish i could edit my post. I note that some versions of the sdk this reason was set incorrectly - which i'm guessing may be why mmiscool hadn't implemented anything based on it.
viewtopic.php?f=32&t=8411&start=8
Re: Auto-starting modules with ESP8266 Basic
Posted:
Wed Sep 21, 2016 12:50 pm
by livetv
Would it be worthwhile to poll a GPIO pin and either wait the 30 seconds or not wait based on its state? Let's say it's GPIO16. Just put a pull-down resistor on it then allow a button to pull it high. It's only tested in the first few seconds after power up so the pin is available for general use after that. If I want to interrupt a boot process and prevent an autostart of /default.bas, it's almost certain that I'm still in development and within reach of this button!
Re: Auto-starting modules with ESP8266 Basic
Posted:
Wed Sep 21, 2016 6:31 pm
by Mmiscool
Right now as is. Auto start of a program can be disabled by pulling gpio 0 low while it is trying to do its initial wifi connection.
I suppose that a setting could be added to change the boot safe mode time.