Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
262 stars 227 forks source link

Adding commented protocols to appropriate samples #1070

Closed danhellem closed 2 years ago

danhellem commented 2 years ago

Checklist

Reference/Link to the issue solved with this PR (if any)

Description of the problem

Getting customer feedback on how to use other protocols besides mqtt. Noticed that many of our samples do not have the block for customers to choose.

var Protocol = require('azure-iot-device-mqtt').Mqtt;
// const Protocol = require('azure-iot-device-amqp').AmqpWs;
// const Protocol = require('azure-iot-device-http').Http;
// const Protocol = require('azure-iot-device-amqp').Amqp;
// const Protocol = require('azure-iot-device-mqtt').MqttWs;

Description of the solution

Added block to each sample.

danhellem commented 2 years ago

/azp run Azure.azure-iot-sdk-node

azure-pipelines[bot] commented 2 years ago
No pipelines are associated with this pull request.
danhellem commented 2 years ago

/azp run Azure.node-canary (Windows Node 12.x)

azure-pipelines[bot] commented 2 years ago
No pipelines are associated with this pull request.
danhellem commented 2 years ago

/azp run

azure-pipelines[bot] commented 2 years ago
Azure Pipelines successfully started running 2 pipeline(s).
danhellem commented 2 years ago

/azp run

azure-pipelines[bot] commented 2 years ago
Azure Pipelines successfully started running 2 pipeline(s).