Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Azure IoT Development Cookbook

You're reading from  Azure IoT Development Cookbook

Product type Book
Published in Aug 2017
Publisher Packt
ISBN-13 9781787283008
Pages 254 pages
Edition 1st Edition
Languages
Author (1):
Yatish Patil Yatish Patil
Profile icon Yatish Patil

Table of Contents (10) Chapters

Preface 1. Getting Started with the Azure IoT Platform 2. Introducing Device Management 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 $15.99/month. Cancel anytime}