Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:mervis-scada:80-mqtt [2020/08/27 09:29] l.osladil [Weintek compatible format] |
en:mervis-scada:80-mqtt [2024/05/08 10:42] (current) |
||
---|---|---|---|
Line 121: | Line 121: | ||
</ | </ | ||
==== Weintek compatible format ==== | ==== Weintek compatible format ==== | ||
- | === Registration of available variables === | + | |
- | + | * Print screens | |
- | | + | |
- | * Publish message with “At least once delivery” | + | |
- | * Topic: deviceId/ | + | |
- | * Combination of the collection ID and Tag must be unique for every device! | + | |
- | * Payload: UTF-8 JSON document | + | |
- | * /FormatId: (string), message ID | + | |
- | * / | + | |
- | * /Complete (bool), must be true now | + | |
- | * / | + | |
- | * /Id (int), ID of the collection | + | |
- | * / | + | |
- | * /SampleRate (int), collection sample rate in ms | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | * /ValueType (string), ST type; only simple types are supported | + | |
- | + | ||
- | **Example** | + | |
- | + | ||
- | <code json> | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | }] | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | }, | + | |
- | { | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | }] | + | |
- | }] | + | |
- | } | + | |
- | </ | + | |
=== Variable values === | === Variable values === | ||
* Publishes values of variables | * Publishes values of variables | ||
* Publish message with “At least once delivery” | * Publish message with “At least once delivery” | ||
- | * Topic: deviceId/TagValues | + | * Topic: |
* Payload: UTF-8 JSON document | * Payload: UTF-8 JSON document | ||
- | * /FormatId: (string), message ID | + | * /d: root element |
- | * /ApiVersion(int), version | + | * " |
- | * / | + | * metadata format: |
- | * /TagData (Array | + | * " |
- | * /Time (datetime), timestamp in ISO format (YYYY-MM-DDTHH: | + | * " |
- | * /Values (Collection | + | * " |
**Example** | **Example** | ||
Line 209: | Line 149: | ||
</ | </ | ||
+ | {{ : | ||
=== Command registration === | === Command registration === | ||
+ | * Topic: $deviceId/ | ||
+ | * Format: | ||
+ | * /d root element | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
< | < | ||
{ | { | ||
Line 218: | Line 170: | ||
} | } | ||
</ | </ | ||
+ | choose/ | ||
+ | {{ : | ||
+ | set general tab by screenshot | ||
+ | {{ : | ||
+ | add commands | ||
+ | {{ : | ||
+ | ===Our supported types=== | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | ===Create a subcribe topic for executing command=== | ||
+ | * for previous command example | ||
+ | * create topic $deviceId/ | ||
+ | * with two addresses: | ||
+ | * temperature(32-bit float) | ||
+ | * date(string) | ||
+ | {{ : |