Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Azure IoT Development Cookbook

You're reading from   Azure IoT Development Cookbook Develop and manage robust IoT solutions

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787283008
Length 254 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Yatish Patil Yatish Patil
Author Profile Icon Yatish Patil
Yatish Patil
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Getting Started with the Azure IoT Platform 2. Introducing Device Management FREE CHAPTER 3. IoT Hub Messaging and Commands 4. Azure IoT Communication Protocols 5. Azure IoT Hub Security and Best Practices 6. IoT Suite and Pre-Configured Solutions 7. Azure IoT Analytics 8. Using Real Devices to Connect and Implement Azure IoT Hub 9. Managing the Azure IoT Hub

Using MQTT .NET library to communicate with IoT Hub

MQTT is a Machine-to-Machine (M2M) client server publish/subscribe messaging transport protocol. It is a lightweight, low-bandwidth, high-latency network, and easy to implement connectivity protocol.

The key benefits of MQTT protocol are:

  • Simple to implement
  • Provide Quality of Service (QoS) data delivery
  • Lightweight and bandwidth efficient

MQTT protocol can connects multiple devices using the publish/subscribe mechanism to collect data from many devices. The MQTT, targets device data collection mainly for telemetry or remote monitoring purposes. It then transports that data to the backend central system using publish/subscribe mechanism.

In this recipe, we will understand the MQTT protocol and will create a C# console application using M2MQTT library to connect to the IoT Hub and ingest the data.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime