Hello, here are a library that detects double resets on ESP8266 https://github.com/jenscski/DoubleResetDetect