Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland
Azure IoT from Device to Display and Everything in Between. Jon Gallant, Principal SDE, Developer Experience, Microsoft @jongallant
Microsoft Ignite 2016 11/18/2018 9:29 AM About Me Life Family Blog Coding 3D Printing Coffee Music Jon Gallant @jongallant jongallant.com Work Microsoft Blog Coding 3D Printing Manager “A man is a success if he gets up in the morning and goes to bed at night and in between does what he wants to do.” Bob Dylan © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Session Goals A quick Azure IoT Overview and demonstrate how to… Send Device to Cloud Messages Receive Cloud to Device Messages Process Messages Display Messages
Azure IoT Overview An Azure service that allows you to build high scale and secure IoT solutions. Per device security credentials and access control Reliable Bi-directional messaging Device management Open Source SDKs Millions of devices and millions of events per sec
Azure Sphero
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Send Messages
Azure IoT Hub - Create Create IoT Hub https://portal.azure.com/#create/Microsoft.IotHub Download Device Explorer https://github.com/Azure/azure-iot-sdks/releases
Azure IoT – Register Device Device Explorer – Management – Create Device
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Send Messages
Azure IoT Node.js SDK npm install azure-iot-device https://github.com/Azure/azure-iot-sdks/ https://www.npmjs.com/package/azure-iot-device npm install azure-iot-device-amqp https://www.npmjs.com/package/azure-iot-device-amqp https://www.amqp.org/
Sphero JavaScript SDK npm install sphero https://www.npmjs.com/package/sphero https://sdk.sphero.com/community-apis/javascript-sdk/ npm install noble https://www.npmjs.com/package/noble https://www.youtube.com/watch?v=mL9B8wuEdms https://github.com/sandeepmistry/noble
Azure Sphero - References Reference SDKs
Azure Sphero - Connect Connect to Spheros Init Azure Client Open Azure Connection
Azure Sphero – Events Handle Sphero Telemetry Events
Azure Sphero – Send to Azure Invoke azureClient.SendEvent
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Receive Messages
Azure Sphero – Receive Messages Register Connect Callback Register “message” Event Handler
Azure Sphero – Receive Messages
Azure Sphero – Receive Messages Execute Sphero Command
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Receive Messages
Azure Sphero - Control Sphero via Twitter Watch for #azuresphero and roll Sphero
Azure Sphero – Service Fabric Listens for #azuresphero using Twitter Streaming API and Executes Logic App
Azure Sphero – Logic App Receives POST from Service Fabric, Converts Tweet to JSON, Sends to IoT Hub and Power BI
Azure Sphero – Azure Function Receives a Tweet and Converts it to JSON for IoT Hub and Power BI
Azure Sphero – IoT Hub Connector Proxy between a Logic App and IoT Hub https://github.com/logicappsio/IoTHubApi
Azure Sphero – Power BI Streaming Dataset Send Tweet JSON to Power BI new Streaming Dataset Feature aka “Push with Key” http://bit.ly/pbistream
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Process Messages
Azure Sphero – Process Messages Takes IoT Hub data and Sends it to Power BI
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Display Messages
Azure Sphero – Display Messages Power BI Report for Gyro Data Summary and Drill Down
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – Display Messages
Azure Sphero – Power BI Streaming Dataset Power BI Push with Key API Power BI Tweet Leaderboard Report
DEMO – Azure Sphero Tweets Tweet to spin the Spheros #azuresphero blue #azuresphero red
Azure Sphero – What We Learned How to Send, Receive, Process and Display IoT Messages through the Azure Pipeline and integrate other Azure Services like Azure Functions, Logic Apps and Service Fabric. Subscribe to my blog at jongallant.com or follow me @jongallant for updates to this solution and code samples.
Azure Sphero Tweet Results
My Ignite NZ Sessions Azure IoT – Tues, 2:55pm, NZ 4 Microsoft Ignite 2016 11/18/2018 9:29 AM My Ignite NZ Sessions Azure IoT – Tues, 2:55pm, NZ 4 Power BI for Developers – Wed, 9:00am, NZ 3 Work:life Balance – Wed, 1:40pm, Theatre © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Q&A
11/18/2018 9:29 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.