(check my previous post if you don't know how to create Iot Hub)
Step 1 After creating Iot Hub click on device manager then device as shown below
you can see we have zero device zero message
Then click add device
Step 2 give your device a name and save
Step 3 click the device created and copy the primary connection sting _
Step 4 _Go to web search for raspberry pi stimulator and open
you can see our diode is not working yet
Step 5 go to the code section (number 15) paste the primary connection string you copy and run
paste the code like this
You can see our diode has started blinking shows its working
Step 6 go back to your created Iot Hub in Azure and refresh
you can see we 1 device connected and 123 messages
yes we did it, follow for more tips.
Top comments (0)