DoubleResetDetector
DoubleResetDetector copied to clipboard
Get more users for this library
I think this library is really excellent and deserves more attention then it gets!
I've created a video around this library hopefully it helps raise awareness of it. I only have a pretty small channel but hopefully it helps! I'll also make a post to instructables over the next few days.
https://youtu.be/l9Gl1yKvMNg
Thanks!
I think that at the end of the example in your video, by calling stop, you're only allowing for double resets that are fast enough so that they don't get through the initialisation code?
There's another example of using this library with a variant of WiFiManager here: https://github.com/kentaylor/WiFiManager/blob/master/examples/ConfigOnDoubleReset/ConfigOnDoubleReset.ino
No problem!
Yeah, between connecting to the Wifi and reading the config file from SPIFF my setup takes about 3 seconds which I find is plenty of time to catch the reset.
**Start:243**
*WM: Adding parameter
*WM: apiKey
*WM: Adding parameter
*WM: channelId
No Double Reset Detected
*WM:
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Connection result:
*WM: 3
*WM: IP Address:
*WM: 192.168.1.35
Init YouTube API
WiFi connected
IP address:
192.168.1.35
**Setup End:3130**