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 10:21] l.osladil [Weintek compatible format] |
en:mervis-scada:80-mqtt [2021/12/20 13:27] m.chlupac removed |
||
---|---|---|---|
Line 9: | Line 9: | ||
* possibility of a dynamic variable set (devices can specify what variables they publish) | * possibility of a dynamic variable set (devices can specify what variables they publish) | ||
* only built-in types are supported (bool, integers, floating point numbers, string) | * only built-in types are supported (bool, integers, floating point numbers, string) | ||
- | * no commands/ | ||
* support for secured channel. A device can use secure or non-secure connection | * support for secured channel. A device can use secure or non-secure connection | ||
Line 121: | Line 120: | ||
</ | </ | ||
==== Weintek compatible format ==== | ==== Weintek compatible format ==== | ||
- | * We assume that all DateTime | + | * We assume that all datetime |
+ | * Print screens are from EasyBuilder Pro SW | ||
=== Variable values === | === Variable values === | ||
* Publishes values of variables | * Publishes values of variables | ||
Line 127: | Line 127: | ||
* Topic: $deviceId/ | * Topic: $deviceId/ | ||
* 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 148: | Line 148: | ||
</ | </ | ||
+ | {{ : | ||
=== Command registration === | === Command registration === | ||
* Topic: $deviceId/ | * Topic: $deviceId/ | ||
Line 157: | Line 158: | ||
* " | * " | ||
* " | * " | ||
- | * " | + | * " |
- | * our types: | + | * " |
+ | * " | ||
+ | < | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | choose/ | ||
+ | {{ : | ||
+ | set general tab by screenshot | ||
+ | {{ : | ||
+ | add commands | ||
+ | {{ : | ||
+ | ===Our supported types=== | ||
* " | * " | ||
* " | * " | ||
Line 172: | Line 189: | ||
* " | * " | ||
* " | * " | ||
- | | + | ===Create a subcribe topic for executing command=== |
- | * " | + | |
- | < | + | * create topic $deviceId/ |
- | { | + | * with two addresses: |
- | | + | * temperature(32-bit float) |
- | " | + | |
- | }, | + | {{ :en:mervis-scada:annotation_2020-08-27_110134.png?600 |}} |
- | " | + | |
- | } | + | |
- | </ | + |