Raspberry PIRaspberry PI
Code Editor
1
2
/*
* IoT Hub Raspberry Pi NodeJS - Microsoft Sample Code - Copyright (c) 2017 - Licensed MIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RunReset
Click `Run` button to run the sample code(When sample is running, code is read-only). Click `Stop` button to stop the sample code running. Click `Reset` to reset the code.We keep your changes to the editor even you refresh the page.
>  
 
Step 1
Step 2
Step 3
×
Overview of Raspberry Pi Simulator
1. Assembly Area. You can see your device status.
2. Coding Area. An online code editor for you to make an app on Raspberry Pi with Node.js
3. Integrated console window. You can see the output of your app.
1. In the Azure portal, click New > Internet of Things > IoT Hub to provision a new IoT hub.
2. In the Device Explorer pane, click Add to add a device to your IoT hub.
3. Select the device you just created and copy the primary key of the connection string.
1. Replace the placeholder in Line 15 with the Azure IoT hub device connection string.
2. Click Run button or type "npm start" in the console window to run the application.
Back
Next