Powering your next Internet of Things app with MQTT
When it comes to connecting physical objects from the day-to-day life to the Internet, one is faced with several challenges:
- Communication happens over a constrained and sometimes unreliable network (cellular, Wi-Fi, ...)
- Data coming from an object (temperature sensor, alarm system, ...) on the field needs to be efficiently routed to several consumers: end-users, databases, enterprise information systems, ...
- Embedded devices have limited processing power and need to be energy efficient
MQTT is a protocol for the Internet of Things that is addressing the aforementioned challenges and allows to build scalable sensor networks. Eclipse Paho, one of the most popular of the Eclipse M2M projects, provides reference implementations of the MQTT protocol in several programming languages.
This tutorial aims at giving you a hands-on experience with the MQTT protocol, and walk you through the creation of an end-to-end M2M/IoT application.
An initial agenda for the tutorial is as follows:
- Introduction to MQTT
- Introduction to the Eclipse Paho project
- Overview of API and programming style with Java Paho
- Exercise: Monitoring a sensor using MQTT
- Exercise: Using MQTT over Websockets for creating a live web interface
- Going further: MQTT-SN (MQTT for Sensors Networks)