Book Image

Azure IoT Development Cookbook

By : Yatish Patil
Book Image

Azure IoT Development Cookbook

By: Yatish Patil

Overview of this book

Microsoft’s end-to-end IoT platform is the most complete IoT offering, empowering enterprises to build and realize value from IoT solutions efficiently. It is important to develop robust and reliable solutions for your organization to leverage IoT services. This book focuses on how to start building custom solutions using the IoT hub or the preconfigured solution of Azure IoT suite. As a developer, you will be taught how to connect multiple devices to the Azure IoT hub, develop, manage the IoT hub service and integrate the hub with cloud. We will be covering REST APIs along with HTTP, MQTT and AMQP protocols. It also helps you learn Pre-Configured IoT Suite solution. Moving ahead we will be covering topics like:-Process device-to-cloud messages and cloud-to-device messages using .Net-Direct methods and device management-Query Language, Azure IoT SDK for .Net-Creating and managing, Securing IoT hub, IoT Suite and many more. We will be using windows 10 IoT core, Visual Studio, universal Windows platform. At the end, we will take you through IoT analytics and provide a demo of connecting real device with Azure IoT.
Table of Contents (10 chapters)

Using Azure IoT SDK

Azure provides SDK for the device side as well as the PaaS services which are a part of its IoT stack. Microsoft Azure IoT SDK are open source are easily available to download from GitHub. It supports various language like C#, Node.JS, C, Java. you can use any machine which is capable of development with these technologies.

Azure IoT device SDK, which runs on the IoT device side enables the device for communicating with the IoT Hub. It uses the protocols available. The application deployed on the device then sends the telemetry data to cloud. For this purpose, the device needs to be registered with the IoT Hub as well. These SDKs also help run the bidirectional commands which make it easy to control and manage the device.

Getting ready

Currently these IoT device SDKs support different programming languages, such as ANSI C using .NET C#, and for Java, Node.js and Python as well.

Likewise, these SDKs also support various OS and platforms on which we can develop the applications. Microsoft has made these SDKs portable on any platform and OS. By making these SDKs open source, they are readily available for download on GitHub to make any customization as per your needs.

How to do it...

Azure IoT service SDK provides the code that is used in building an IoT application that directly works with the IoT Hub. It will enable you to manage devices, read messages sent by devices, or even send commands to devices to control actions at the device end.

The GitHub URL to download these open source SDK's are:

  • Azure IoT service SDK for .NET
  • Azure IoT service SDK for Node.js
  • Azure IoT service SDK for Java
  • Azure IoT service SDK for Python

Azure IoT gateway SDKs are used to simplify the connectivity to IoT Hub when we have scenarios which vary drastically between industries, and even between customers within the same industry. The Azure IoT gateway SDK can be used to implement custom-made IoT solutions for your scenario. The device SDKs can be used to implement an IoT client that facilitates connectivity to the cloud. It simply uses the supported communication protocol, it will extract and process the data using the protocol supported before sending it to the cloud.

See also

Download the source code for IoT gateway SDK from GitHub: