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 Raspian 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
  Next: > Now for some HW on the RPi
<  Prev:   Now for some HW on the RPi
This Category:.NET Core on IoT
  Next: > Now for some HW on the RPi IoT Hub Device Streaming Apps that Send & Recv real data - 2 more apps 
<  Prev:   Now for some HW on the RPi