Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:mervis-scada:80-mqtt [2020/08/27 10:40]
l.osladil [Weintek compatible format]
en:mervis-scada:80-mqtt [2024/05/08 10:42] (current)
Line 122: Line 122:
 ==== Weintek compatible format ==== ==== Weintek compatible format ====
   * We assume that all datetime values are in **UTC**   * We assume that all datetime values are in **UTC**
 +  * Print screens are from EasyBuilder Pro SW
 === Variable values === === Variable values ===
   * Publishes values of variables   * Publishes values of variables
Line 131: Line 132:
         * metadata format:         * metadata format:
           * "name" name of property           * "name" name of property
-          * "type" property type(we supported only our list of types)+          * "type" property type(we supported only [[https://kb.mervis.info/doku.php/en:mervis-scada:80-mqtt#our_supported_types|our list of types]])
           * "unit" information about unit of value           * "unit" information about unit of value
  
Line 148: Line 149:
  
 </code> </code>
 +{{ :en:mervis-scada:annotation_2020-08-27_120101.png?600 |}}
 === Command registration === === Command registration ===
   * Topic: $deviceId/mervis/cmd_reg or $deviceId/mervis/cmd_reg/*   * Topic: $deviceId/mervis/cmd_reg or $deviceId/mervis/cmd_reg/*
Line 157: Line 159:
         * "params" parameters with informations to command (**must include all parameters of supscribe topic**)         * "params" parameters with informations to command (**must include all parameters of supscribe topic**)
           * "name" parameter name in json           * "name" parameter name in json
-          * "type" type of parameter (we supported only our list of types)+          * "type" type of parameter (we supported only [[https://kb.mervis.info/doku.php/en:mervis-scada:80-mqtt#our_supported_types|our list of types]])
           * "unit" information about unit of parameter           * "unit" information about unit of parameter
         * "ts" time span          * "ts" time span 
Line 168: Line 170:
 } }
 </code> </code>
 +choose/create $deviceId/mervis/cmd_reg/
 +{{ :en:mervis-scada:annotation_2020-08-27_110112.png?400 |}}
 +set general tab by screenshot
 +{{ :en:mervis-scada:annotation_2020-08-27_121338.png?400 |}}
 +add commands
 +{{ :en:mervis-scada:annotation_2020-08-27_115716.png?400 |}}
 ===Our supported types=== ===Our supported types===
-            * our types: 
               * "generic_bool"               * "generic_bool"
               * "generic_sint8"               * "generic_sint8"
Line 183: Line 190:
               * "generic_string"               * "generic_string"
               * "generic_datetime"               * "generic_datetime"
-===Create subcribe topic for executing command===+===Create subcribe topic for executing command===
   * for previous command example   * for previous command example
   * create topic $deviceId/mervis/command/change_temperature   * create topic $deviceId/mervis/command/change_temperature
   * with two addresses:   * with two addresses:
-    * temperature +    * temperature(32-bit float) 
-    * date+    * date(string) 
 +{{ :en:mervis-scada:annotation_2020-08-27_110134.png?600 |}}
  • © Energocentrum Plus, s.r.o. 2017 - 2025