SlideShare a Scribd company logo
Azure IoT Hub
Basa Mulaveesala (Basavaraj.basa@Infosys.com)
Linkedin profile: www.linkedin.com/in/basavaraj-mulaveesala
Date: 6/22/2018
Azure IoT Hub
 Establish bidirectional communication with billions of IoT devices
 Authenticate per device for security-enhanced IoT solutions
 Automate IoT device provisioning and registration to accelerate your IoT deployment
 Azure IoT Hub is PaaS service and is available in Free, S1, S2 and S3 tiers
IoT Hub
1. Azure IoT Hub is managed service
2. As you can see in the diagram, IoT hub can be
connected from various IoT devices and capable of
bi-directional communications
3. In the backend, various services can consume
the telemetry data for analytics process.
4. IoT hub scales to millions of simultaneously
connected devices and to their events.
5. Devices can securely connect and send
telemetry data to IoT Hub.
6. IoT Hub securely update the device
configuration and firmware.
7. IoT Hub can be integrated with various Azure
services
IoT SDK
 Azure IoT SDK is open sourced and available from GitHub.
 Two types of SDKs: a) Device SDK to be installed on devices
b) PaaS service SDK https://www.nuget.org/packages/Microsoft.Azure.Devices/)
 Device SDK enables devices to communicate with Azure IoT hub
 Supports C#/Java/C/Python/Node.js
 Protocols: REST API,
MQTT(Message Queuing Telemetry Transport),
AMQP(Advanced Message Queuing Protocol)
 Message Limits:
Device-to-cloud messaging - Maximum message size 256 KB
Cloud-to-device messaging1 - Maximum message size 64 KB. Maximum pending messages for delivery is 50.
Direct method - Maximum direct method payload size is 128 KB.
IoT Hub endpoints
Microsoft
documentation
1. All IoT hub endpoints use only TLS protocol
2. Custom endpoints can be added
3. Device identity management exposes a set of
HTTPS REST endpoints to manage device
identities (CRUD operations)
4. Device twin management exposes few
endpoints to query and update device twin
5. Each IoT hub exposes a set of service-facing
HTTPS REST endpoint for job management
6. Device management endpoints for sending
D2C, C2D and also for file uploads
7. Service endpoints for your backend to
communicate with devices.
Device twins
1. Device twins are proxy to actual device
2. Device twin is a JSON document that
contain metadata, tags, properties, status etc
. IoT Hub maintains a device twin for each
device connected.
3. Device twin is made up of reported
properties and desired properties.
4. Device twins can have multiple tags that
are accessible only from backend.
5. Device twins doesn’t maintain history, it
reflects current device status.
6. Devices can be queried on device ID or
tags or properties.
7. Device twins are used to synchronize
device conditions and configuration between
backend and device
8. Device twins max size is 8KB
Connection strings
 There are two types of connection strings a) device connection string b) IoT Hub service
connection string
 To register a new device use IoT Hub service connection string
 To send D2C messages to hub use device connection string.
 Examples: Service connection string: HostName=myiothub. azure-devices.net;
SharedAccessKeyName=iothubowner;
SharedAccessKey=2iNSTrayW9xE7Uo9liEtNmXqwwzj6tawabcdde=
 Device connection string: HostName=myiothub. azure-devices.net; DeviceId=mydevice_1;
SharedAccessKey=XMfjq4yE6a1XSRdtFs94c+xJQZhxpnfngfCJW9A=
Registering device with IoT Hub
 string deviceId = “Watchdog_1"; //case sensitive
 Create RM  registryManager = RegistryManager. CreateFromConnectionString(connectionString);
 Add new device  device = await registryManager.AddDeviceAsync(new Device(deviceId));
 Console.WriteLine("Generated device key: {0}",
device.Authentication.SymmetricKey.PrimaryKey);
Direct Methods
 The back-end application connects to a service-side endpoint on your IoT Hub.
 IoT hub can invoke direct methods on devices
 It is a request-response message
 Timeout occurs if the device doesn’t respond in a certain time
 Default timeout is 30 seconds but can be increased up to 3600 seconds
 Device should be connected using MQTT and backend can use HTTP
References
 IoT hub Documentation: https://docs.microsoft.com/en-us/azure/iot-hub/
 Github Azure IoT SDK for .Net : https://github.com/Azure/azure-iot-sdk-csharp
 IoT Hub Rest Reference: https://docs.microsoft.com/en-us/rest/api/iothub/
 Device firmware update (.Net) : https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-csharp-
csharp-firmware-update
 Microsoft Azure IoT Starter kit: https://catalog.azureiotsolutions.com/kits

More Related Content

PPTX
Microsoft Azure IoT Hub (Sam Vanhoutte @TechdaysNL 2017)
Codit
 
PPTX
Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)
Codit
 
PPTX
Azure IoT (Sam Vanhoutte @NMCT IoT Fest)
Codit
 
PPTX
Azure iot
書廷 林
 
PPTX
Demystifying Internet of Things with Azure IoT Suite
WinWire Technologies Inc
 
PPTX
IoT on Azure
Vinoth Rajagopalan
 
PPTX
Architecting Azure IoT Solutions
GlobalLogic Ukraine
 
PDF
Azure IoT Hub: what is it and why we select other solution (production projec...
Katherine Golovinova
 
Microsoft Azure IoT Hub (Sam Vanhoutte @TechdaysNL 2017)
Codit
 
Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)
Codit
 
Azure IoT (Sam Vanhoutte @NMCT IoT Fest)
Codit
 
Azure iot
書廷 林
 
Demystifying Internet of Things with Azure IoT Suite
WinWire Technologies Inc
 
IoT on Azure
Vinoth Rajagopalan
 
Architecting Azure IoT Solutions
GlobalLogic Ukraine
 
Azure IoT Hub: what is it and why we select other solution (production projec...
Katherine Golovinova
 

What's hot (19)

PPTX
Introduction to Azure IoT Suite
Daniel Toomey
 
PPTX
Building IoT Solutions using Windows IoT Core
WinWire Technologies Inc
 
PPTX
Azure IoT Hub
WinWire Technologies Inc
 
PPTX
Windows IoT: Accelerate the Intelligent Edge with the Windows AI Platform
Microsoft Tech Community
 
PDF
Azure IoT Suite
Samir Arezki ☁
 
PPTX
DotNetToscana - Azure IoT Hub - Il Concentratore
Riccardo Cappello
 
PPTX
Exploring the Azure IoT Ecosystem
BizTalk360
 
PPTX
Azure IoT Camp
Vadim Kacherov
 
PPTX
Build 2017 - B8024 - Connected intelligent things with Windows IoT Core and A...
Windows Developer
 
PDF
AWS IoT vs Azure IoT
ahmed badr
 
PPTX
Building Secure IoT Solutions using Azure Sphere
Chris Pietschmann (Microsoft MVP)
 
PPTX
Developing an IoT System FIWARE Based from the Scratch
FIWARE
 
PPTX
Getting started with Azure Event Grid - Webinar with Steef-Jan Wiggers
Codit
 
PPTX
Fiware Developers Week Iot exercises (Advanced)
dmoranj
 
PPTX
Creator IoT Framework
Paul Evans
 
PPTX
Develop a portal to manage your IoT Hub solution
Marco Parenzan
 
PDF
Azure security architecture / FAUG JKL 15.2.2018
Karl Ots
 
PPTX
.NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with ...
NETFest
 
PDF
Connecting to the internet of things (IoT)
Fernando Lopez Aguilar
 
Introduction to Azure IoT Suite
Daniel Toomey
 
Building IoT Solutions using Windows IoT Core
WinWire Technologies Inc
 
Windows IoT: Accelerate the Intelligent Edge with the Windows AI Platform
Microsoft Tech Community
 
Azure IoT Suite
Samir Arezki ☁
 
DotNetToscana - Azure IoT Hub - Il Concentratore
Riccardo Cappello
 
Exploring the Azure IoT Ecosystem
BizTalk360
 
Azure IoT Camp
Vadim Kacherov
 
Build 2017 - B8024 - Connected intelligent things with Windows IoT Core and A...
Windows Developer
 
AWS IoT vs Azure IoT
ahmed badr
 
Building Secure IoT Solutions using Azure Sphere
Chris Pietschmann (Microsoft MVP)
 
Developing an IoT System FIWARE Based from the Scratch
FIWARE
 
Getting started with Azure Event Grid - Webinar with Steef-Jan Wiggers
Codit
 
Fiware Developers Week Iot exercises (Advanced)
dmoranj
 
Creator IoT Framework
Paul Evans
 
Develop a portal to manage your IoT Hub solution
Marco Parenzan
 
Azure security architecture / FAUG JKL 15.2.2018
Karl Ots
 
.NET Fest 2019. Stas Lebedenko. Practical serverless use cases in Azure with ...
NETFest
 
Connecting to the internet of things (IoT)
Fernando Lopez Aguilar
 
Ad

Similar to Azure IoT hub (20)

PPTX
DWX2018 IoT lecture
Alon Fliess
 
PDF
IoT Seminar (Oct. 2016) Juan Perez - Microsoft
Open Mobile Alliance
 
PPTX
Architecting io t solutions with microisoft azure ignite tour version
Alon Fliess
 
PPTX
Azure Internet of Things
Alon Fliess
 
PPTX
Sviluppare un portale per gestire la tua soluzione IoT Hub
Marco Parenzan
 
PPTX
Azure IoT Hub
Shahriar Hossain
 
PPTX
Architecting IoT solutions with Microsoft Azure
Alon Fliess
 
PPTX
Raspberry pi and Azure
Faisal Mehmood
 
PPTX
IoT on azure
Joanna Lamch
 
PPTX
IoTSummit - Introduction to IoT Hub
Marco Silva
 
PPTX
Azure IoT End-to-End
Martin Abbott
 
PPTX
Microsoft azure services dedicated for IoT solutions
Predica Group
 
PPTX
IoT end-to-end: porta i tuoi dati dal sensore al cloud
Codemotion
 
PPTX
Internet of things at the Edge with Azure IoT Edge by sonujose
Sonu Jose
 
PDF
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
Andri Yadi
 
PDF
Azure IoT Hub: 30 minutes Intro & Demo
Andri Yadi
 
PPTX
Gab 2015 aymeric weinbach azure iot
Aymeric Weinbach
 
PPTX
Generating cross platform .NET based azure IoTdevice
Alon Fliess
 
PPTX
A serverless IoT story from design to production and monitoring
CodeValue
 
PPTX
A serverless IoT Story From Design to Production and Monitoring
Moaid Hathot
 
DWX2018 IoT lecture
Alon Fliess
 
IoT Seminar (Oct. 2016) Juan Perez - Microsoft
Open Mobile Alliance
 
Architecting io t solutions with microisoft azure ignite tour version
Alon Fliess
 
Azure Internet of Things
Alon Fliess
 
Sviluppare un portale per gestire la tua soluzione IoT Hub
Marco Parenzan
 
Azure IoT Hub
Shahriar Hossain
 
Architecting IoT solutions with Microsoft Azure
Alon Fliess
 
Raspberry pi and Azure
Faisal Mehmood
 
IoT on azure
Joanna Lamch
 
IoTSummit - Introduction to IoT Hub
Marco Silva
 
Azure IoT End-to-End
Martin Abbott
 
Microsoft azure services dedicated for IoT solutions
Predica Group
 
IoT end-to-end: porta i tuoi dati dal sensore al cloud
Codemotion
 
Internet of things at the Edge with Azure IoT Edge by sonujose
Sonu Jose
 
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
Andri Yadi
 
Azure IoT Hub: 30 minutes Intro & Demo
Andri Yadi
 
Gab 2015 aymeric weinbach azure iot
Aymeric Weinbach
 
Generating cross platform .NET based azure IoTdevice
Alon Fliess
 
A serverless IoT story from design to production and monitoring
CodeValue
 
A serverless IoT Story From Design to Production and Monitoring
Moaid Hathot
 
Ad

Recently uploaded (20)

PPTX
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PDF
Fundamentals and Techniques of Biophysics and Molecular Biology (Pranav Kumar...
RohitKumar868624
 
PPTX
Presentation on animal welfare a good topic
kidscream385
 
PDF
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
PPTX
Introduction to computer chapter one 2017.pptx
mensunmarley
 
PPTX
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
PPTX
MR and reffffffvvvvvvvfversal_083605.pptx
manjeshjain
 
PPTX
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
PDF
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PPTX
short term internship project on Data visualization
JMJCollegeComputerde
 
PPTX
Introduction to Data Analytics and Data Science
KavithaCIT
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PDF
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
PPTX
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
PPTX
short term project on AI Driven Data Analytics
JMJCollegeComputerde
 
PPTX
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
PPTX
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
PPTX
Databricks-DE-Associate Certification Questions-june-2024.pptx
pedelli41
 
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
Fundamentals and Techniques of Biophysics and Molecular Biology (Pranav Kumar...
RohitKumar868624
 
Presentation on animal welfare a good topic
kidscream385
 
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
Introduction to computer chapter one 2017.pptx
mensunmarley
 
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
MR and reffffffvvvvvvvfversal_083605.pptx
manjeshjain
 
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
short term internship project on Data visualization
JMJCollegeComputerde
 
Introduction to Data Analytics and Data Science
KavithaCIT
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
short term project on AI Driven Data Analytics
JMJCollegeComputerde
 
Blue and Dark Blue Modern Technology Presentation.pptx
ap177979
 
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
Databricks-DE-Associate Certification Questions-june-2024.pptx
pedelli41
 

Azure IoT hub

  • 1. Azure IoT Hub Basa Mulaveesala ([email protected]) Linkedin profile: www.linkedin.com/in/basavaraj-mulaveesala Date: 6/22/2018
  • 2. Azure IoT Hub  Establish bidirectional communication with billions of IoT devices  Authenticate per device for security-enhanced IoT solutions  Automate IoT device provisioning and registration to accelerate your IoT deployment  Azure IoT Hub is PaaS service and is available in Free, S1, S2 and S3 tiers
  • 3. IoT Hub 1. Azure IoT Hub is managed service 2. As you can see in the diagram, IoT hub can be connected from various IoT devices and capable of bi-directional communications 3. In the backend, various services can consume the telemetry data for analytics process. 4. IoT hub scales to millions of simultaneously connected devices and to their events. 5. Devices can securely connect and send telemetry data to IoT Hub. 6. IoT Hub securely update the device configuration and firmware. 7. IoT Hub can be integrated with various Azure services
  • 4. IoT SDK  Azure IoT SDK is open sourced and available from GitHub.  Two types of SDKs: a) Device SDK to be installed on devices b) PaaS service SDK https://www.nuget.org/packages/Microsoft.Azure.Devices/)  Device SDK enables devices to communicate with Azure IoT hub  Supports C#/Java/C/Python/Node.js  Protocols: REST API, MQTT(Message Queuing Telemetry Transport), AMQP(Advanced Message Queuing Protocol)  Message Limits: Device-to-cloud messaging - Maximum message size 256 KB Cloud-to-device messaging1 - Maximum message size 64 KB. Maximum pending messages for delivery is 50. Direct method - Maximum direct method payload size is 128 KB.
  • 5. IoT Hub endpoints Microsoft documentation 1. All IoT hub endpoints use only TLS protocol 2. Custom endpoints can be added 3. Device identity management exposes a set of HTTPS REST endpoints to manage device identities (CRUD operations) 4. Device twin management exposes few endpoints to query and update device twin 5. Each IoT hub exposes a set of service-facing HTTPS REST endpoint for job management 6. Device management endpoints for sending D2C, C2D and also for file uploads 7. Service endpoints for your backend to communicate with devices.
  • 6. Device twins 1. Device twins are proxy to actual device 2. Device twin is a JSON document that contain metadata, tags, properties, status etc . IoT Hub maintains a device twin for each device connected. 3. Device twin is made up of reported properties and desired properties. 4. Device twins can have multiple tags that are accessible only from backend. 5. Device twins doesn’t maintain history, it reflects current device status. 6. Devices can be queried on device ID or tags or properties. 7. Device twins are used to synchronize device conditions and configuration between backend and device 8. Device twins max size is 8KB
  • 7. Connection strings  There are two types of connection strings a) device connection string b) IoT Hub service connection string  To register a new device use IoT Hub service connection string  To send D2C messages to hub use device connection string.  Examples: Service connection string: HostName=myiothub. azure-devices.net; SharedAccessKeyName=iothubowner; SharedAccessKey=2iNSTrayW9xE7Uo9liEtNmXqwwzj6tawabcdde=  Device connection string: HostName=myiothub. azure-devices.net; DeviceId=mydevice_1; SharedAccessKey=XMfjq4yE6a1XSRdtFs94c+xJQZhxpnfngfCJW9A=
  • 8. Registering device with IoT Hub  string deviceId = “Watchdog_1"; //case sensitive  Create RM  registryManager = RegistryManager. CreateFromConnectionString(connectionString);  Add new device  device = await registryManager.AddDeviceAsync(new Device(deviceId));  Console.WriteLine("Generated device key: {0}", device.Authentication.SymmetricKey.PrimaryKey);
  • 9. Direct Methods  The back-end application connects to a service-side endpoint on your IoT Hub.  IoT hub can invoke direct methods on devices  It is a request-response message  Timeout occurs if the device doesn’t respond in a certain time  Default timeout is 30 seconds but can be increased up to 3600 seconds  Device should be connected using MQTT and backend can use HTTP
  • 10. References  IoT hub Documentation: https://docs.microsoft.com/en-us/azure/iot-hub/  Github Azure IoT SDK for .Net : https://github.com/Azure/azure-iot-sdk-csharp  IoT Hub Rest Reference: https://docs.microsoft.com/en-us/rest/api/iothub/  Device firmware update (.Net) : https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-csharp- csharp-firmware-update  Microsoft Azure IoT Starter kit: https://catalog.azureiotsolutions.com/kits