Purpose of the article is to get started with getting simulated data delivered to Azure IoT Hub.
- Knowledge of SiteManager configuration. See SiteManager getting started guides.
- An Azure IoT Hub account Start a free trial here
- A SiteManager with release 9.0 or higher
Goto SiteManager GUI and create an agent with DCM enabled.
(Choose a Generic / Data Collector Module device)
Click the parameter details icon
Add a DCM collector name (dcmcn) for associating the Agent and the DCM collector config.
(Remember the name for later use)
Goto DCM > import and import the below configuration file (Can be downloaded by clicking the picture)
Goto DCM > Status and copy the device "Edge ID" value.
Log in to your Azure account and go to Iot Hub-><your resource name>->IoT Devices
Go to Iot Hub-><your resource name>->IoT Devices
Press the [Add] button and fill in the device Edge ID, select Authentication Type "Symetric Key" and press [Save]
Click on the device Edge ID in your list of IoT Devices to view the Certificates and Keys.
Now copy the "Connection String -- Primary Key" into your clipboard.
Log into the SiteManager GUI and go into DCM->Certificates and press [New]. Select type "Azure Connection String", give it a name (fx. azurecs) and paste the connection string from the clipboard. Press [Save].
Go to SiteManager GUI DCM->Edit and enter this configuration, where the "ConnectName" field value is the name of the connection string value you created in the previous step (eg. azurecs).
Goto DCM > Restart and restart the DCM incl the Store'n'forward DB.
Goto DCM > Status and check that the dataserver is connected and sending data to the cloud.