- Navigate to Config → Drivers.
From Drivers, select AbstractMqttDriverNetwork.
a. If you can’t find AbstractMqttDriverNetwork under Drivers, you will have to add it first. Click on New at the bottom of the screen.
b. The New popup will appear. Select AbstractMqttDriverNetwork from the Type to Add dropdown, keep Number to Add as 1, and then click Ok.
c. Give a name to the AbstractMqttDriverNetwork and click Ok to add the driver.
d. You will now find the AbstractMqttDriverNetwork under Drivers. Click on it.
From Palette → Device, select DefaultMqttDevice and drag it to the AbstractMqttDriverNetwork driver, as shown in the following image.
Click DefaultMqttDevice under AbstractMqttDriverNetwork. The Property Sheet will open as shown in the following image.
Under Authentication on the Property Sheet, configure the MQTT device broker endpoint, broker port, and connection type, as shown below:
a. Broker Endpoint: lorawan-mqtt.service.veeamesh.local
b. Broker Port: 10884
c. Connection Type: User Login Over SSL
d. SSL Version: Select the version that’s configured in the MQTT server.
e. User name: Add the user name of the MQTT server you want to connect to.
f. Password: Add the password of the MQTT server you want to connect to.
g. Optionally: Anonymous may be used to test, but considering the vulnerabilities that exist with opening up controls of your MQTT devices, this is not a safe option. The MQTT may be configured in service data broker file browser editing the mosquito.conf.
- listener 1883
allow_anonymous true
Once done, click Save.
6. Right-click on DefaultMqttDevice and go to Actions → Connect.
If the connection is successful, the Status Message will be “Connected" as shown in the above image.
7. Now, navigate to AbstractMqttDriverNetwork → DefaultMqttDevice -> Points.
8. Click New at the bottom of the screen. The New popup will appear.
9. Based on the data type of your sensor, select the point type. (Example: MqttStringSubscribePoint). Click Ok.
10. Next, configure the Point and add application/+/device/+/event/up in the Topic field to subscribe to MQTT.
11. You can now see the newly added point in the Points Database.
12. Navigate to Points → MqttStringSubscribePoint → Proxy Ext.
12. Right-click on Proxy Ext, and from Actions, select Subscribe.
14. After subscribing to the point successfully, we will see the sensor data in the Out column of the Database screen.