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
Next revision Both sides next revision
en:mervis-scada:80-mqtt [2020/08/27 10:42]
l.osladil [Weintek compatible format]
en:mervis-scada:80-mqtt [2021/12/20 12:37]
m.chlupac [Basic properties and requirements]
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/set point yet 
   * 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 122: Line 121:
 ==== 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 131:
         * 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 148:
  
 </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 158:
         * "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 169:
 } }
 </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 189:
               * "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
Line 189: Line 195:
     * temperature(32-bit float)     * temperature(32-bit float)
     * date(string)     * date(string)
 +{{ :en:mervis-scada:annotation_2020-08-27_110134.png?600 |}}
  • © Energocentrum Plus, s.r.o. 2017 - 2024