0.0.2 • Published 5 years ago
azure-iot-diagnostics v0.0.2
Azure IoT Diagnostics
An easier way to set diagnostics configuration for your Azure IoT Solutions.
Go to https://aka.ms/azure.iot for more awesome Azure IoT projects and resources.
Prerequisites
- Node.js v6.0.0 or higher
Setup
- Open terminal, and run
npm install -g azure-iot-diagnostics
Usage
Output usage information
$ az-iot-diag -h
$ az-iot-diag set -h
Turn on diagnostics and set sample rate as 10% for device1 and device2
$ az-iot-diag set --login "HostName=<my-hub>.azure-devices.net;SharedAccessKeyName=<my-policy>;SharedAccessKey=<my-policy-key>" --enable true --sample_rate 10 --devices device1,device2