iot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
iot [2020/05/27 07:52] – [From Android client to WebHMI] emozolyak | iot [2020/06/12 10:05] – ↷ Links adapted because of a move operation atolstov | ||
---|---|---|---|
Line 11: | Line 11: | ||
To understand, look at this diagram. | To understand, look at this diagram. | ||
- | {{ :wiki: | + | {{ iot: |
There is no need in direct connection which is quite fragile and entails overhead. So, the broker is the gamechanger. | There is no need in direct connection which is quite fragile and entails overhead. So, the broker is the gamechanger. | ||
Line 23: | Line 23: | ||
To start, firstly go to “Settings” to make sure that “MQTT Server” is turned on. | To start, firstly go to “Settings” to make sure that “MQTT Server” is turned on. | ||
- | {{ ::wiki: | + | {{ iot: |
- | [[mqtt|About MQTT you can find more here]] | + | [[mqtt|About |
Line 45: | Line 45: | ||
TCP Port: 1883 | TCP Port: 1883 | ||
- | {{ :wiki: | + | {{ iot: |
After that, create a new register into that connection which will represent MQTT topic related to MQTT broker. | After that, create a new register into that connection which will represent MQTT topic related to MQTT broker. | ||
Click "New register" | Click "New register" | ||
Line 54: | Line 54: | ||
Address: iot-test (any name, it is MQTT topic to subcribe and to publish) | Address: iot-test (any name, it is MQTT topic to subcribe and to publish) | ||
Script alias: mqtt_publish | Script alias: mqtt_publish | ||
- | {{ :wiki: | + | {{ iot: |
Go to “Value” tab to change its type to “String” | Go to “Value” tab to change its type to “String” | ||
- | {{ :wiki: | + | {{ iot: |
And click " | And click " | ||
- | {{ :wiki: | + | {{ iot: |
Now, it is time to change registers value manually and check the result response on another client such as Android app, PC clients such as " | Now, it is time to change registers value manually and check the result response on another client such as Android app, PC clients such as " | ||
Let's check the response in MQTT.fx PC client. How to configure it will be shown later. | Let's check the response in MQTT.fx PC client. How to configure it will be shown later. | ||
- | {{ :wiki: | + | {{ iot: |
In the MQTT.fx will be shown caught changes in the subscribed topics. | In the MQTT.fx will be shown caught changes in the subscribed topics. | ||
- | {{ :wiki: | + | {{ iot: |
===== Connect to WebHMI MQTT Broker with external client ===== | ===== Connect to WebHMI MQTT Broker with external client ===== | ||
Line 74: | Line 74: | ||
For example, freeware MQTT client “MQTT.fx” will be used. | For example, freeware MQTT client “MQTT.fx” will be used. | ||
---- | ---- | ||
- | {{:wiki: | + | {{iot: |
\\ | \\ | ||
\\ | \\ | ||
Line 81: | Line 81: | ||
---- | ---- | ||
To do this, let’s create a new connection with the following settings: | To do this, let’s create a new connection with the following settings: | ||
- | {{ :wiki: | + | {{ iot: |
Click on “+” in the lower left corner and set: | Click on “+” in the lower left corner and set: | ||
Line 92: | Line 92: | ||
Let’s connect to WebHMI Broker by pressing the “Connect” button. | Let’s connect to WebHMI Broker by pressing the “Connect” button. | ||
- | {{ :wiki: | + | {{ iot: |
If everything is fine than connection will be established, | If everything is fine than connection will be established, | ||
==== From Android client to WebHMI ==== | ==== From Android client to WebHMI ==== | ||
In the Google Play Market, there is a lot of MQTT Client apps. For example, it would be shown the connection with [[https:// | In the Google Play Market, there is a lot of MQTT Client apps. For example, it would be shown the connection with [[https:// | ||
- | {{ :wiki: | + | {{ iot: |
Line 103: | Line 103: | ||
\\ | \\ | ||
- | {{ :wiki: | + | {{ iot: |
So, let’s add WebHMI Broker by click “Add first broker” button. | So, let’s add WebHMI Broker by click “Add first broker” button. | ||
Line 113: | Line 113: | ||
- | {{ :wiki: | + | {{ iot: |
Then, click the “Save” button in the bottom centre position. | Then, click the “Save” button in the bottom centre position. | ||
Line 123: | Line 123: | ||
- | {{ :wiki: | + | {{ iot: |
To demonstrate how the function works, the " | To demonstrate how the function works, the " | ||
- | {{ :wiki: | + | {{ iot: |
Pick the “Text” type. | Pick the “Text” type. | ||
- | {{ :wiki: | + | {{ iot: |
Fill in the “Subscribe topic” form the “iot-test” value and then press “Copy” symbol near “Publish topic” to copy the topics name to this form also. | Fill in the “Subscribe topic” form the “iot-test” value and then press “Copy” symbol near “Publish topic” to copy the topics name to this form also. | ||
Line 138: | Line 138: | ||
- | {{ :wiki: | + | {{ iot: |
To test the connection, you can try to change the register’s value and check the smartphone' | To test the connection, you can try to change the register’s value and check the smartphone' | ||
- | {{ :wiki: | + | {{ iot: |
The text message was sent through the MQTT protocol to WebHMI broker and the sent to the Android app. | The text message was sent through the MQTT protocol to WebHMI broker and the sent to the Android app. | ||
- | {{ :wiki: | + | {{ iot: |
It also works in another direction and can be published from the smartphone. | It also works in another direction and can be published from the smartphone. | ||
Line 162: | Line 162: | ||
\\ | \\ | ||
AWS IoT Core is a managed cloud platform that lets connected devices easily and securely interact with cloud applications. AWS IoT Core can support billions of devices and trillions of messages, and can process and routethose messages to AWS endpoints and to other devices and services reliably and securely. | AWS IoT Core is a managed cloud platform that lets connected devices easily and securely interact with cloud applications. AWS IoT Core can support billions of devices and trillions of messages, and can process and routethose messages to AWS endpoints and to other devices and services reliably and securely. | ||
- | {{ :wiki:iot:aws:AWS_IoT_core.png?nolink |}} | + | {{ iot:aws:aws_iot_core.png?nolink |}} |
==== Cloud analytics with Amazon ==== | ==== Cloud analytics with Amazon ==== | ||
- | The simplest example of AWS application can be meter' | + | The simplest example of AWS application can be meter' |
- | {{ :wiki:iot: | + | {{ iot: |
- | The conprehensive | + | The comprehensive |
iot.txt · Last modified: 2020/09/22 14:02 by atolstov