switch to latest azure iot SDK.

This commit is contained in:
Ryan Winter 2021-05-03 16:41:12 -07:00
Родитель 585d88cb32
Коммит 4da73600ab
3 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -50,8 +50,8 @@ There are two ways to utilize this status information in your existing custom so
```js
var { EventHubClient, EventPosition } = require('@azure/event-hubs');
let iothubreader = require('./eventProcessor');
let IoTHubTokenCredentials = require('azure-iot-digitaltwins-service').IoTHubTokenCredentials;
let DigitalTwinServiceClient = require('azure-iot-digitaltwins-service').DigitalTwinServiceClient;
let IoTHubTokenCredentials = require('iothub').IoTHubTokenCredentials;
let DigitalTwinServiceClient = require('azure-iothub').IoTHubTokenCredentials;
var constants = require('./constants');
const credentials = new IoTHubTokenCredentials(constants.connectionString);

Просмотреть файл

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
var { EventHubClient, EventPosition } = require('@azure/event-hubs');
let IoTHubTokenCredentials = require('azure-iot-digitaltwins-service').IoTHubTokenCredentials;
let DigitalTwinServiceClient = require('azure-iot-digitaltwins-service').DigitalTwinServiceClient;
let IoTHubTokenCredentials = require('azure-iothub').IoTHubTokenCredentials;
let DigitalTwinServiceClient = require('azure-iothub').DigitalTwinClient;
let iothubreader = require('./eventProcessor');
const { propertiesCommandsAPI } = require('./HTTPServer');
const {processVerifiedTelemetryProperties } = require('./verifiedTelemetryProcessor');

Просмотреть файл

@ -13,10 +13,9 @@
"license": "ISC",
"dependencies": {
"@azure/event-hubs": "^2.1.0",
"azure-iot-device": "^1.17.1",
"azure-iot-digitaltwins-service": "1.0.0-pnp-refresh.3",
"circular-json": "^0.5.9",
"influx": "^5.6.3"
"azure-iot-device": "^1.17.3",
"azure-iothub": "^1.14.0",
"influx": "^5.8.0"
},
"devDependencies": {
"eslint": "^6.8.0",