mqtt
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
mqtt [2020/04/09 08:02] – created emozolyak | mqtt [2023/02/13 15:38] – [JSON Fetch tool in the WebHMI registers configuration] emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MQTT protocol ====== | ====== MQTT protocol ====== | ||
- | MQTT or Message Queue Telemetry Transport is a protocol focused on applications in M2M (Machine-to-Machine Interaction) and IIoT (Industrial Internet of Things) systems. Information transfer to MQTT is implemented according to the Publisher/ | + | MQTT or Message Queue Telemetry Transport is a protocol focused on applications in M2M (Machine-to-Machine Interaction) and IIoT (Industrial |
This method of interaction is well suited for event-based messaging, when the devices themselves periodically communicate. | This method of interaction is well suited for event-based messaging, when the devices themselves periodically communicate. | ||
In version 4.0 WebHMI has the ability to work in both Broker and Publisher/ | In version 4.0 WebHMI has the ability to work in both Broker and Publisher/ | ||
- | {{ :: | + | {{ network: |
+ | |||
+ | The setup pages is similar to other connections setup and there is a MQTT tab for specific settings: | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | {{ network: | ||
+ | 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. | ||
+ | <WRAP center round important 60%> | ||
+ | Please note that for TLS type authentification you'' | ||
+ | </ | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | The internal brokder have to be switch on in the settings menu: | ||
+ | |||
+ | {{ network: | ||
+ | |||
+ | ===== 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: | ||
+ | {{ : | ||
+ | |||
+ | Let's suppose you have a JSON value received from 7bit AirPoint module: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | 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.) | ||
+ | |||
+ | {{ : | ||
mqtt.txt · Last modified: 2023/02/13 15:39 by emozolyak