MQTT + Python IIoT Training

Basic

  1. 🆓Guide to Installing and Configuring Eclipse Mosquitto MQTT Broker on Windows Machine [Watch]

Mosquitto Broker Configuration

  1. 🆓Setting up Username & Password Authentication for Mosquitto MQTT Broker [Watch]

  2. 🆓Setting up Mosquitto MQTT Broker Topic Restrictions using ACL File [Watch]

  3. 🆓How to Create Your Own Public MQTT Broker Using Mosquitto and LocalTonet [Watch]

  4. 🆓How to Create Your Own Public MQTT Broker using Mosquitto and Ngrok [Watch]

  5. ⏳️How to Create Your Own Public MQTT Broker using Mosquitto, OpenVPN and Portmap.io [Watch]

Publisher

  1. 🆓How to Build a Basic MQTT Publisher for the Internet of Things in Python [Watch]

  2. 🆓How to Build MQTT Publisher in Python to Publish JSON Payloads to MQTT Topic [Watch]

  3. 🆓Securely Publish your MQTT Data to CloudMQTT Broker using Python [Watch]

Subscriber

  1. 🆓How to Create MQTT Subscriber Client using Python [Watch]

  2. 🆓How to Create MQTT Subscriber Client in Python to Extract the Data from JSON Payload [Watch]

  3. 🆓How to Create MQTT Subscriber Client in Python to Extract the Data from Extended JSON Payload [Watch]

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"
  }
]
				
			
  1. 🆓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"
    }
  ]
}