DEV Community

Chris George
Chris George

Posted on

walkthrough- how to create an IOT HUB and connect it to a device on Azure portal.

The internet of things (IoT) is a network of physical devices that connect to and exchange data with other devices over the internet or other network. Anything that can be embedded with necessary sensors and software can be connected over the internet.

  1. on the Azure portal search and open IoT HUB, you would be shown this page>

Image description
click on create by the top left side of you screen.

  1. On The next page input the required details. .subscription, Resource group, Regions, Tier and daily message limit.

Image description
click on review and create to proceed.

3.After your deployment is complete click on "Go to Resources"

Image description

4.click on devices and Add device.

Image description

5.name the device you want to connect and click on save.

Image description
. for the purpose of this demonstration am naming my device "chriscctv", and am using a Raspberry pi simulator as my device.

6.open the device you named and copy the primary connection string.

Image description

  1. I proceed to open my raspberry Pi simulator and paste the primary connection string in the place holder meant for "connection string" in line 15, and clicked on Run.

Image description

  1. under RUN/RESET you can see messages being sent to Azure IoT HUB.

Image description

  1. Here is the confirmation of the communication between my IoT HUB and the Device (Raspberry pi simulator)'

Image description

Top comments (0)