We just published a new GitHub repository with a code sample to access an Azure IoT Hub via the MQTT protocol, without using the Azure IoT SDK. Constrained devices sometimes do not have enough memory to support the full SDK making it necessary to access the IoT Hub using the MQTT protocol.
These C code samples show how to use Eclipse Mosquitto to send telemetry messages to Azure IoT Hub’s MQTT endpoint, as well as how to receive events, exchange device twin properties, and deal with Plug and Play device capabilities.
We also updated the MQTT article, referencing this new GitHub repository, as this article explains how to connect using MQTT protocol to an IoT hub (topic, username or password to be used).
This repository contains folders with the following samples:
We really want this repository to become a reference for developers interested in interacting with Azure IoT Hub over MQTT., so please send pull requests our way if you would like to add examples featuring your MQTT client of choice! We are looking forward to adding examples on how to do X.509 based authentication or use other MQTT libraries . If you have a comment or a suggestion, please open a GitHub issue.
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.