How to do it...

In this section we will use the IoT Edge SDK and the simulator provided by it:

  1. We will continue to use the IoT Hub IoTHubCookBook we created.
  2. Clone the repository for IoT Edge to the local drive using a git command:
git clone https://github.com/Azure/iot-edge.git
  1. Open the VS Command Prompt.
  2. Navigate to the IoT Edge local repository folder.
  3. 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
  1. It will take 20+ minutes to perform the task:
  1. Once the build is completed, navigate to the samples simulated_device_cloud_uploadsrc folder.
  2. Edit the simulated_device_cloud_upload_win.json configuration file in Notepad.
  3. We will configure the IoT Hub and device details in the sample module:
  1. 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
  1. The simulator will start and data will get ingested:
  1. Open the device explorer and monitor the readings:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.147.190