Skip to Content
Python Programming for Arduino
book

Python Programming for Arduino

by Pratik Desai
February 2015
Intermediate to advanced
400 pages
9h 49m
English
Packt Publishing
Content preview from Python Programming for Arduino

Getting started with MQTT on Arduino and Python

Now that you have the Mosquitto broker installed on your computer, it means that you have a working broker that implements the MQTT protocol. Our next goal is to develop the MQTT clients in Arduino and also in Python so that they will work as publishers and subscribers. After implementing the MQTT clients, we will have a fully-functional MQTT system, where these clients communicate through the Mosquitto broker. Let's begin with deploying MQTT on the Arduino platform.

MQTT on Arduino using the PubSubClient library

As MQTT is a network-based messaging protocol, you will always need an Ethernet Shield to communicate with your network. For the following exercise, we will continue using the same hardware ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Raspberry Pi

Python Programming with Raspberry Pi

Srihari Yamanoor, Sai Yamanoor

Publisher Resources

ISBN: 9781783285938Supplemental Content