MQTT + Python IIoT Training
Mosquitto Broker Configuration
🆓Setting up Username & Password Authentication for Mosquitto MQTT Broker [Watch]
🆓Setting up Mosquitto MQTT Broker Topic Restrictions using ACL File [Watch]
🆓How to Create Your Own Public MQTT Broker Using Mosquitto and LocalTonet [Watch]
🆓How to Create Your Own Public MQTT Broker using Mosquitto and Ngrok [Watch]
⏳️How to Create Your Own Public MQTT Broker using Mosquitto, OpenVPN and Portmap.io [Watch]
Subscriber
Example Payload
[
{
"t": "/KEPServer_Client_Tag/Tag1",
"v": null,
"q": 24,
"ts": "2024-05-13T05:38:00.904Z"
},
{
"t": "/KEPServer_Client_Tag/Tag2",
"v": null,
"q": 24,
"ts": "2024-05-13T05:38:00.904Z"
},
{
"t": "/Matrikon_Client_Tag/Int1",
"v": 32,
"q": 192,
"ts": "2024-05-13T05:38:08.033Z"
},
{
"t": "/Prosys_Client_Tag/PsInteger1",
"v": 58,
"q": 192,
"ts": "2024-05-13T11:08:08.920Z"
},
{
"t": "/Modbus_TCP_Tag/HR0",
"v": 1,
"q": 192,
"ts": "2024-05-13T05:38:09.989Z"
},
{
"t": "/Modbus_TCP_Tag/HR1",
"v": 10,
"q": 192,
"ts": "2024-05-13T05:38:09.989Z"
}
]
🆓How to Create MQTT Subscriber Client in Python to Extract the Data from Compact JSON Payload [Watch]
Example Payload
{
"/KEPServer_Client_Tag/Tag1": [
{
"v": null,
"q": 24,
"ts": "2024-05-13T06:02:46.660Z"
}
],
"/KEPServer_Client_Tag/Tag2": [
{
"v": null,
"q": 24,
"ts": "2024-05-13T06:02:46.660Z"
}
],
"/Matrikon_Client_Tag/Int1": [
{
"v": 22,
"q": 192,
"ts": "2024-05-13T06:02:52.923Z"
}
],
"/Prosys_Client_Tag/PsInteger1": [
{
"v": 93,
"q": 192,
"ts": "2024-05-13T11:32:53.794Z"
}
],
"/Modbus_TCP_Tag/HR0": [
{
"v": 1,
"q": 192,
"ts": "2024-05-13T06:02:53.954Z"
}
],
"/Modbus_TCP_Tag/HR1": [
{
"v": 1653,
"q": 192,
"ts": "2024-05-13T06:02:53.954Z"
}
]
}