The az-iothub-ps set of PowerShell scripts has been extended: Building upon the .NET Core GitHub project djaus2/DNETCoreGPIO, there is now an app under Telemetry that runs on the RPi that sends real Telemetry data to the IoT Hub. Uses a DHT22 sensor. Only works on Raspbian though.

The az-iothub-ps repository

  • https://github.com/djaus2/az-iothub-ps
  • set-path.ps1 and get-iothub.ps1 are in the PS folder
    • Run ./set-path first
    • Then run get-iothub to create a hub if needed and to get hub metatdata (connection strings).
  • quickstarts folder is in ps\qs-apps under which are apps.

How To

  • See the setup (including wiring) is in djaus2/DNETCoreGPIO repository
  • Set up the IoT Hub as previous using get-iothub PS script and get the environment variable into set-env.sh bash script, as previous.
  • Look for the app quickstarts\telemetry\telemetry\simulated-device_on_RPi
  • Run that after running the set-env.sh script on the device as previous

 TopicSubtopic
   
 This Category Links 
Category:IoT Index:IoT
  Next: > Now for some HW on the RPi
<  Prev:   Now for some HW on the RPi