Getting ready
If M2M connectivity exist, the device may not be able to use the IoT Hub SDK. But with MQTT support added to the IoT Hub, a public endpoint can be used to connect.
MQTT protocol has the following main components:
Client: The MQTT client is any device that has the MQTT library and is capable of connecting to the broker to publish or subscribe the messages via the available topics. MQTT library is also available in different languages. We have used M2MQTT for the console application, which is also available through the NuGet package installer.
Broker: The broker is the central system between two different devices. Its job is to receive all the messages from the publishing clients and send them to the subscribing clients. The broker ...
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.
Read now
Unlock full access