In this section we will use the IoT Edge SDK and the simulator provided by it:
- We will continue to use the IoT Hub IoTHubCookBook we created.
- Clone the repository for IoT Edge to the local drive using a git command:
git clone https://github.com/Azure/iot-edge.git
- Open the VS Command Prompt.
- Navigate to the IoT Edge local repository folder.
- Run the build command, which will compile and build the code to connect to the IoT Hub and run data ingestion:
toolsuild.cmd --disable-native-remote-modules
- It will take 20+ minutes to perform the task:
- Once the build is completed, navigate to the samples simulated_device_cloud_uploadsrc folder.
- Edit the simulated_device_cloud_upload_win.json configuration file in Notepad.
- We will configure the IoT Hub and device details in the sample module:
- To run this simulator we will execute the following code:
samplessimulated_device_cloud_uploadDebugsimulated_device_cloud_upload_sample.exe ..samplessimulated_device_cloud_uploadsrcsimulated_device_cloud_upload_win.json
- The simulator will start and data will get ingested:
- Open the device explorer and monitor the readings: