Updated Button usage (markdown)

blakadder 2019-02-23 02:18:49 +01:00
parent 88ca77dcf5
commit 5f12a21004
1 changed files with 5 additions and 5 deletions

@ -2,18 +2,18 @@ The main button on a Sonoff-Tasmota flashed module provides the following functi
- **1 short press:** Toggles the relay either directly or by sending a MQTT message like ```cmnd/sonoff/POWER1 ON```. This will blink the LED twice and sends a MQTT status message like ```stat/sonoff/POWER1 ON```. If ```cmnd/sonoff/ButtonRetain on``` has been used the MQTT message will also contain the MQTT retain flag.
- **2 short presses:** Toggles the relay 2 if available on the device like Sonoff Dual. This will blink the LED twice and sends a MQTT status message like ```stat/sonoff/POWER2 on```.
- **2 short presses:** Toggles the relay 2 if available on the device (for example [Sonoff Dual](Sonoff-Dual)). This will blink the LED twice and sends a MQTT status message like ```stat/sonoff/POWER2 on```.
- **3 short presses:** Start Wifi smartconfig allowing for SSID and Password configuration using an Android mobile phone with the [ESP8266 SmartConfig](https://play.google.com/store/apps/details?id=com.cmmakerclub.iot.esptouch) app. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.
- **3 short presses:** Start Wi-Fi smartconfig allowing for SSID and Password configuration using an Android mobile phone with the [ESP8266 SmartConfig](https://play.google.com/store/apps/details?id=com.cmmakerclub.iot.esptouch) app. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.
- **4 short presses:** Start Wifi manager providing an Access Point with IP address 192.168.4.1 and a web server allowing the configuration of Wifi. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.
- **4 short presses:** Start Wi-Fi manager providing an Access Point with IP address 192.168.4.1 and a web server allowing the configuration of Wi-Fi. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.
- **5 short presses:** Start Wifi Protected Setup (WPS) allowing for SSID and Password configuration using the router's WPS button or webpage. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.
- **5 short presses:** Start Wi-Fi Protected Setup (WPS) allowing for SSID and Password configuration using the router's WPS button or webpage. The LED will blink during the config period. A single button press during this period will abort and restart sonoff.
- **6 short presses:** Will restart the module
- **7 short presses:** Start OTA download of firmware. The green LED is lit during the update
- **Pressing the button for over forty seconds:** Reset settings to defaults as defined in ```user_config.h``` and restarts the device
- **Pressing the button for over 40 seconds:** Reset settings to defaults as defined in ```user_config.h``` and restarts the device
The button is usually connected to `GPIO0` *(NodeMCU pin D3)*