Skip to content

Kim-Berg/aziot_devsim

Repository files navigation

Device simulator for IoT Hub Client

How to run this sample:

Note: if you are running this on a raspberry pi, nake sure you have node.js v10 or higher installed

  1. If you intend to connect using certificates, please visit this URL for instructions
  2. clone this repo
> git clone git://github.com/lucarv/aziot_devsim.git
> cd aziot_devsim
  1. install dependencies
> npm install
  1. edit the payloads.josn file with templates for your telemetry payload. It should be an array, and when you start the script, you pass the array index as the first command line argument
  2. run the sample for a normal device from the command line
> node app [INDEX] "HostName=[HUBNAME].azure-devices.net;DeviceId=[DEVICEID];x509=true"   
or
> node app [INDEX] "HostName=[HUBNAME].azure-devices.net;DeviceId=[DEVICEID];SharedAccessKey=[PSK]"
  1. run the sample for a constrained device from the command line (better instructions soon)
> node constrained 
  1. Note eventual text output to the console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published