linux meets azure iot hub - stefan johner · key-takeaways •azure iot hub linux •visual studio...

19
Get to know Azure IoT Hub from a Linux perspective Linux meets Azure IoT Hub @johnerstefan https://blog.jhnr.ch Stefan Johner | Die Schweizerische Post

Upload: others

Post on 20-May-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Get to know Azure IoT Hub from a Linux perspective

Linux meets Azure IoT Hub

@johnerstefanhttps://blog.jhnr.ch

Stefan Johner | Die Schweizerische Post

Page 2: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Thank you, sponsors!

Page 3: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Disclaimer I am not a Developer No deep dive IoT session Azure IoT Hub basics Simple IoT Demo Use Case

How does it feel working with Azure IoT in a Linux only environment

Get to know Azure IoT Hub

Page 4: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Win a MXChipIoT Dev KitTweet with Hashtags #iwantthatdevkit and #AzureSaturday

Tweet with the most Likes will!

Page 5: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Azure IoT Hub

Page 6: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Azure IoT Device & Cloud Patterns

Page 7: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

What’s the deal with OSS? Azure does not care if you are running Windows or Linux

IoT Devices are running Linux → Azure Sphere OS

Open Source compontents SDKs IoT Edge IoT Explorer IoT Protocol Gateway

Azure IoT SDKs:

• C

• Python

• NodeJS

• Java

• .Net

Page 8: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

IoT Hub “Bridge” to other Azure Services Custom Endpoints Declarative Message Routing

Backend/Management for sensors and devices Protocol Support for MQTT, AMQT and HTTPS Libraries for most popular languages and platforms

Cloud-to-Device communication

Page 9: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

C2D Communications guidance

Option

Scenario

Data Flow

Targets

Frequency

Page 10: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Concept of Device Twins

Page 11: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Long Term Support Every six months, a new version of LTS is released A version is actively maintained for six months to receive security fxes and critical bug fxes

After a one-year total lifetime, the branch will be removed

Page 12: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Pricing and Scale Free, Basic and Standard tier Ofered in three editions: S1, S2 and S3 Total of 8,000 messages a day are free

Page 13: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Visual Studio Code is your friend

Page 14: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Demo: RaspberryPi Sensor

RaspberryPi with Sense HAT connected to Azure IoT Hub and Time Series Insights

Page 15: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Demo Overview

Page 16: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Summary

Page 17: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

Key-takeaways• Azure IoT Hub Linux• Visual Studio Code is your friend• SDKs and many other components are Open Source

• Direct Methods and Device Twins help you manage your things at scale

• Bridge to other Azure services like Time Series Insights

• Check out samples and get started with free tier

Page 18: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

References● My Raspberry Pi Sensor Sample on Github● Azure IoT Reference Architecture● Azure IoT Hub Documentation● Comparison of Azure IoT Hub vs. Event Hub● Azure IoT SDKs on Github● Raspberry Pi Online Simulator● Azure IoT Samples

Page 19: Linux meets Azure IoT Hub - Stefan Johner · Key-takeaways •Azure IoT Hub Linux •Visual Studio Code is your friend •SDKs and many other components are Open Source •Direct

We appreciate your feedback!

Azure Saturday 2018

https://form.responster.com/yW6Q72