Update MQTT-API.md

This commit is contained in:
CaCO3
2023-09-16 22:33:18 +02:00
committed by GitHub
parent 191fda900d
commit 0b33691b26

View File

@@ -52,8 +52,8 @@ Topic | Description
### GPIO ### GPIO
`MainTopic`/{GPIO topic}, e.g. `watermeter/GPIO/GPIO12` `MainTopic`/{GPIO topic}, e.g. `watermeter/GPIO/GPIO12`
* #### GPIO/GPIO{PinNumber} #### GPIO/GPIO{PinNumber}
Depending on device configuration (`Settings` --> `Configuration` --> section `GPIO`) Depending on device configuration (`Settings` --> `Configuration` --> section `GPIO`)
## Subscribed topics ## Subscribed topics
@@ -61,17 +61,17 @@ Topic | Description
### Control ### Control
* #### ctrl/flow_start #### ctrl/flow_start
Trigger a flow start by publishing to this topic Trigger a flow start by publishing to this topic.
+ Payload: + Payload:
- any character, length > 0 - any character, length > 0
* #### ctrl/set_prevalue #### ctrl/set_prevalue
!!! Note !!! Note
This feature is available since version [15.2.0](https://github.com/jomjol/AI-on-the-edge-device/releases/tag/v15.2.0)! This feature is available since version [15.2.0](https://github.com/jomjol/AI-on-the-edge-device/releases/tag/v15.2.0).
Set the last valid value (previous value) to given value or the actual RAW value. Payload needs to be provided in JSON notation. Set the last valid value (previous value) to given value or the actual RAW value. Payload needs to be provided in JSON notation.
+ Payload: + Payload:
- Set to given value (value >= 0): `{"numbersname": "main", "value": 12345.67890}` - Set to given value (value >= 0): `{"numbersname": "main", "value": 12345.67890}`
* `"numbersname":`Provide name of number sequence, e.g. `"main"` * `"numbersname":`Provide name of number sequence, e.g. `"main"`
@@ -81,5 +81,5 @@ Topic | Description
* `"numbersname":` Provide name of number sequence, e.g. `"main"` * `"numbersname":` Provide name of number sequence, e.g. `"main"`
* `"value":` Provide any negative number * `"value":` Provide any negative number
* #### GPIO/GPIO{PinNumber} #### GPIO/GPIO{PinNumber}
Depending on device configuration (`Settings` --> `Configuration` --> section `GPIO`) Depending on device configuration (`Settings` --> `Configuration` --> section `GPIO`)