diff --git a/docs/use/gateway.md b/docs/use/gateway.md index 99e9660256..a25c7b8bdd 100644 --- a/docs/use/gateway.md +++ b/docs/use/gateway.md @@ -7,3 +7,18 @@ ## Erase the ESP settings `mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoSYS/config" -m '{"cmd":"erase"}'` + +# State LED usage + +The gateway can support up to 3 LED to display its operating state: +* LED_INFO +switched ON when network and MQTT connection are OK +5s ON, 5s OFF when WIFI is disconnected +1s ON, 4s OFF when MQTT is disconnected + +* LED_RECEIVE +Blink for `TimeLedON` 0.5s when the gateway receive a signal from one of its module so as to send to MQTT + +* LED_SEND +Blink for `TimeLedON` 0.5s when the gateway send a signal with one of its module from an MQTT command + diff --git a/main/User_config.h b/main/User_config.h index 6ce3404360..91ccf5cdfd 100755 --- a/main/User_config.h +++ b/main/User_config.h @@ -174,8 +174,8 @@ const char* certificate CERT_ATTRIBUTE = R"EOF(" /*------------------DEEP SLEEP parameters ------------------*/ //DEFAULT_LOW_POWER_MODE 0 to normal mode (no power consumption optimisations) -//DEFAULT_LOW_POWER_MODE 1 to activate deep sleep with LCD ON when a function is processing, -//DEFAULT_LOW_POWER_MODE 2 to activate deep sleep with LED ON when a function is processing (LCD is turned OFF) +//DEFAULT_LOW_POWER_MODE 1 to activate deep sleep +//DEFAULT_LOW_POWER_MODE 2 to activate deep sleep (LCD is turned OFF) #ifdef ESP32 # ifndef DEFAULT_LOW_POWER_MODE # define DEFAULT_LOW_POWER_MODE 0