Skip to content
michael.caisse.io michael.caisse.io
c++ embedded library

Implenting a Modern C++ MQTT Client for Embedded Devices

Introducing MaQiaTTo for embedded MQTT handling.

M

Michael Caisse

60 minutes

Event: c++now

Abstract

Many IoT (Internet of Things) devices have adopted MQTT as an efficient protocol for communication. Few IoT devices have embraced modern C++ as a viable language for implementations. MQTT (Message Queueing Telemetry Transport) is a reliable publish-subscriber based messaging protocol that can be found in diverse ecosystems such as servers, cell phones, and light bulbs. Unfortunately, existing open source libraries leave much to be desired and many are a rich source of bad practices when compared to modern techniques. This session will unveil a CiereLabs open source MQTT client library written for embedded systems in modern C++ . There will be a brief demonstration of the library followed by digging into the design and implementation. As we explore the C++14 code base to illustrate useful idioms and techniques for your own code we will answer the question, what does is take to put modern C++ on a small OS-less device or a cell phone? Are there features to avoid? Join us and see how libraries can be elegantly designed and implemented for big or small targets.

Play the video