Note: if you are running this on a raspberry pi, nake sure you have node.js v10 or higher installed
- If you intend to connect using certificates, please visit this URL for instructions
- clone this repo
> git clone git://github.com/lucarv/aziot_devsim.git
> cd aziot_devsim
- install dependencies
> npm install
- 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
- 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]"
- run the sample for a constrained device from the command line (better instructions soon)
> node constrained
- Note eventual text output to the console.