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 08:53] l.osladil |
en:mervis-scada:80-mqtt [2024/05/08 10:42] (current) |
||
---|---|---|---|
Line 121: | Line 121: | ||
</ | </ | ||
==== Weintek compatible format ==== | ==== Weintek compatible format ==== | ||
+ | * We assume that all datetime values are in **UTC** | ||
+ | * Print screens are from EasyBuilder Pro SW | ||
+ | === Variable values === | ||
+ | * Publishes values of variables | ||
+ | * Publish message with “At least once delivery” | ||
+ | * Topic: $deviceId/ | ||
+ | * Payload: UTF-8 JSON document | ||
+ | * /d: root element | ||
+ | * " | ||
+ | * metadata format: | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | |||
+ | **Example** | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "My array" : [ 0, 10, 20 ] | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | {{ : | ||
+ | === Command registration === | ||
+ | * Topic: $deviceId/ | ||
+ | * Format: | ||
+ | * /d root element | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | < | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | 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) | ||
+ | {{ : |