homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 307 forks source link

New option: use double reset button to enter configuration mode #294

Closed ortegafernando closed 7 years ago

ortegafernando commented 7 years ago

Hi, I have already begun to use this great library.

I want to know if it is possible to implement another option.

It is to use RESET button instead falsh button.

That is why Wemos Mini D1 has to use D3 pin for that buttton, but it has a reset button.

Please, see this library: https://github.com/datacute/DoubleResetDetector

Regards,

bertmelis commented 7 years ago

You could relatively easy implement this yourself using the library you mentioned and the built-in functions in Homie. I haven't done this myself but I can't see any obvious showstoppers.

I believe the reset button on the Wemos is a "hardware" reset. The reset option in Homie is a software reset with added functionality (clearing the config file).

marvinroger commented 7 years ago

@ortegafernando unfortunately, as @bertmelis stated, the reset button actually reset the hardware, so we cannot hook to it.