diff --git a/Commands.md b/Commands.md index a5d948ae..f698eeec 100644 --- a/Commands.md +++ b/Commands.md @@ -180,7 +180,7 @@ See also | [`SetOption55`](#Setoption55) - mDNS service control
[`SetOption Command | Parameters :--- | :--- ButtonRetain|`0` = disable use of MQTT retain flag *(default)*
`1` = enable MQTT retain flag on button press -ButtonTopic|`0` = disable use of MQTT button topic
`1` = set MQTT button topic to ``
`2` = set MQTT button topic to firmware default (`MQTT_BUTTON_TOPIC`)
`` = set MQTT button topic (32 chars max) +ButtonTopic\|`0` = disable use of MQTT button topic
`1` = set MQTT button topic to ``
`2` = set MQTT button topic to firmware default (`MQTT_BUTTON_TOPIC`)
`` = set MQTT button topic (32 chars max) FullTopic|`1` = reset MQTT fulltopic to firmware default (`MQTT_FULLTOPIC`) and restart
`` = set MQTT fulltopic (100 chars max) using optional %topic% and %prefix% and restart GroupTopic|`1` = reset MQTT group topic to firmware default (`MQTT_GRPTOPIC`) and restart
`` = set MQTT group topic (32 chars max) and restart MqttClient|`1` = reset MQTT client to firmware config (`MQTT_CLIENT_ID`) and restart
`` = set MQTT client (32 chars max) and restart.
You can use wildcard `%06X` to replace with last six characters of MAC address. @@ -203,7 +203,7 @@ StateText2|`` = set `ON` state text (10 chars max) StateText3|`` = set `TOGGLE` state text (10 chars max) StateText4|`` = set `HOLD` state text (10 chars max) SwitchRetain|`0` = disable use of MQTT retain flag *(default)*
`1` = enable MQTT retain flag on switch press -SwitchTopic|`0` = disable use of MQTT switch topic
`1` = set MQTT switch topic to device MQTT ``
`2` = set MQTT switch topic to firmware default `MQTT_SWITCH_TOPIC`
  • _Typically `MQTT_SWITCH_TOPIC` is set to `0` unless you compile your own firmware and change this value in `user_config_override.h`. If `MQTT_SWITCH_TOPIC` is set to a string, then this command will have the same behavior as outlined below._
`` = set MQTT switch topic (32 chars max) +SwitchTopic\|`0` = disable use of MQTT switch topic
`1` = set MQTT switch topic to device MQTT ``
`2` = set MQTT switch topic to firmware default `MQTT_SWITCH_TOPIC`
  • _Typically `MQTT_SWITCH_TOPIC` is set to `0` unless you compile your own firmware and change this value in `user_config_override.h`. If `MQTT_SWITCH_TOPIC` is set to a string, then this command will have the same behavior as outlined below._
`` = set MQTT switch topic (32 chars max) TelePeriod|`0` = disable telemetry messages
`1` = reset telemetry period to firmware default (`TELE_PERIOD`)
`10..3600` = set telemetry period in seconds *(default = `300`)* Topic|`1` = reset MQTT topic to firmware default (`MQTT_TOPIC`) and restart
`` = set MQTT topic (32 chars max) **and** `ButtonTopic` and restart See also | [`SetOption2`](#setoption2) - Add units to status messages
[`SetOption4`](#setoption4) - Return MQTT response as RESULT or %COMMAND% topic
[`SetOption10`](#setoption10) - Main topic change behaviour