User Tools

Site Tools


mqtt

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mqtt [2020/06/15 09:44] atolstovmqtt [2023/02/13 15:39] (current) – [JSON Fetch tool in the WebHMI registers configuration] emozolyak
Line 6: Line 6:
 In version 4.0 WebHMI has the ability to work in both Broker and Publisher/Subscriber mode, so it can be used as an IoT Edge gateway to integrate the monitoring object into large IoT solutions such as “smart city”, etc., or on the contrary, to receive data from remote devices (sensors) via the Internet, without the need to integrate IP networks. In version 4.0 WebHMI has the ability to work in both Broker and Publisher/Subscriber mode, so it can be used as an IoT Edge gateway to integrate the monitoring object into large IoT solutions such as “smart city”, etc., or on the contrary, to receive data from remote devices (sensors) via the Internet, without the need to integrate IP networks.
  
-{{ ::mqtt.png?direct&400 |}}+{{ network:mqtt.png?direct&400 |}}
  
 The setup pages is similar to other connections setup and there is a MQTT tab for specific settings: The setup pages is similar to other connections setup and there is a MQTT tab for specific settings:
  
-{{ ::mqtt_basic_tab.png?direct&400 |}}+{{ network:mqtt_basic_tab.png?direct&400 |}}
  
-{{ ::mqtt_comm_tab.png?direct&400 |}} +{{ network:mqtt_comm_tab.png?direct&400 |}} 
-In the MQTT tab you set credentials neccessary to connect to the client. If you leave them emty, the client will connect to internal broker.  +In the **MQTT tab** you set credentials neccessary to connect to the client. If you leave them emty, the client will connect to internal broker.  
-{{ ::mqtt_credentials.png?direct&400 |}}+<WRAP center round important 60%> 
 +Please note that for TLS type authentification you''ll have to provide the necessary credentials, which are mandatory and should be put into respective fields.  
 +</WRAP> 
 + 
 +{{ network:mqtt_credentials.png?direct&400 |}}
  
 The internal brokder have to be switch on in the settings menu: The internal brokder have to be switch on in the settings menu:
  
-{{ ::mqtt_server_checkbox.png?direct&400 |}}+{{ network:mqtt_server_checkbox.png?direct&400 |}} 
 + 
 +===== JSON Fetch tool in the WebHMI registers configuration ===== 
 + 
 +With this tool you can exract values by its keys from JSON structures read as String right in the WebHMI register configuration.  
 + 
 +The usage scheme is as follows: 
 +{{ :iot:mqtt:json-extractor-app-commented.png?direct |}} 
 + 
 +Let's suppose you have a JSON value received from 7bit AirPoint module: 
 + 
 +{{ :iot:mqtt:json-src-reg-example.png?direct&800 |}} 
 + 
 +To extact individual values from this register, you just clone it and then set the checkbox in the new register properties, type in the key needed and select appropriate type for the final value (int, float, string etc.) 
 + 
 +{{ :iot:mqtt:json-extraction-key_.png?direct&800 |}} 
 + 
 +Now your registers for individual JSON keys are ready: 
 + 
 +{{ :iot:mqtt:json-extracted-registers_.png?direct&800 |}}
  
mqtt.1592214262.txt.gz · Last modified: 2020/06/15 09:44 by atolstov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki