We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 332a5b4 commit e5f789dCopy full SHA for e5f789d
includes/iot-hub-howto-device-twins-node.md
@@ -83,11 +83,11 @@ Call [fromConnectionString](/javascript/api/azure-iot-device/client?#azure-iot-d
83
"HostName=<iothub_host_name>;DeviceId=<device_id>;SharedAccessKey=<device_key>".
84
* **transportCtor** - The transport protocol.
85
86
-This example uses the `Amqp` transport protocol:
+This example uses the `Mqtt` transport protocol:
87
88
```javascript
89
const deviceConnectionString = "{IoT hub device connection string}"
90
-const Protocol = require('azure-iot-device-mqtt').Amqp;
+const Protocol = require('azure-iot-device-mqtt').Mqtt;
91
let client = Client.fromConnectionString(deviceConnectionString, Protocol);
92
```
93
0 commit comments