Author | Dave Glover, Microsoft Cloud Developer Advocate |
---|---|
Documentation | README |
Platform | Azure IoT Central, Raspberry Pi Simulator |
Video Training | What is Azure IoT Central |
Screencasts | How to create the Azure IoT Central Application |
Date | As at Nov 2018 |
Watch this 5-minute screencast on how to create the Azure IoT Central Application to chart telemetry and send commands to your Particle Photon.
To summarize the screencast:
-
Create an Azure IoT Central application. Hold down the control key and click https://azure.microsoft.com/services/iot-central?WT.mc_id=iot-0000-dglover. Then click Get Started
Next, you'll need to sign with your Microsoft account. If you don't have one, you can create one for free using the Create one! link.
-
Once you are signed in, click the New Application button.
-
Select Trial, Custom Application, type your application name. Then click Create
-
Click Create Device Templates, name your template, for example, "Raspberry". Then click Create
-
Edit the Template, add Measurements for Temperature, Humidity, and Pressure telemetry. You need to click Save after each measurement is defined.
Display Name Field name Units Minimum Maximum Decimals Humidity Humidity % 0 100 0 Temperature Celcius (Note incorrect spelling) degC -10 60 0 Pressure Pressure hPa 800 1260 0 Then click Done.
-
Click Device Explorer on the sidebar menu, select the template you created. Then add a Real Device
-
When you have created your real device click the Connect button in the top right-hand corner of the screen to display the device credentials.
You will need these credentials for the next step.
-
Generate an IoT Central Device Connection String
Hold the control key down and click the following link Connection String Generator to open in a new tab.
Copy and paste the "Scope Id", "Device Id", and the "Primary Key" from the Azure IoT Central Device Connection panel to the Connection String Generator page and click "Get Connection String".
Copy the generated connection string to the clipboard as you will need it for the next step.
We will be using a Raspberry Pi simulator with our IoT Central application. The simulator will stream Temperature, Humidity, and Pressure telemetry to our Azure IoT Central application.
-
Hold the control key down and click Start Raspberry Pi Simulator to open in a new browser tab.
-
Click Next, Next, Got it.
-
Update the Connection String in the simulator
-
Delete the text that reads [Your IoT hub device connection string]. Be careful not to delete the single speech marks and the trailing semicolon.
-
Paste in the Connection String you generated.
-
Next, run the simulator by clicking on the Run button. The simulator will start to send telemetry to the Azure IoT Central Application you created.
-
Switch back to the IoT Central Application tab in your browser and start exploring the charting options.
Click the Device Explorer icon, then select the device you create. Try out various chart options and tune the telemetry values.
Congratulations! You've successfully connected a device into your own Azure IoT Central Application. Nice. However, we've only just begun exploring the capability of this powerful software.
But what to do now? Check out the IoT Central documentation to dive deeper into all of the rich features of IoT Central.
Or have a look at some of these great tutorials: