зеркало из
1
0
Форкнуть 0
azure-iot-sdk-node/device/transport/mqtt/index.js

24 строки
736 B
JavaScript
Исходник Постоянная ссылка Обычный вид История

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
const device = require('azure-iot-device');
const Mqtt = require('./dist/mqtt.js').Mqtt;
const MqttWs = require('./dist/mqtt_ws.js').MqttWs;
/**
* The `azure-iot-device-mqtt` module provides support the MQTT protocol to the device [client]{@link module:azure-iot-device.Client} using secure sockets.
*
* @module azure-iot-device-mqtt
* @requires module:azure-iot-device
*/
module.exports = {
Mqtt: Mqtt,
MqttWs: MqttWs,
clientFromConnectionString: function (connectionString) {
return device.Client.fromConnectionString(connectionString, Mqtt);
}
};