forked from Azure/azure-iot-hub-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iothub.js
37 lines (35 loc) · 1.8 KB
/
iothub.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
/**
* The Azure IoT Service SDK for Node.js allows applications to interact with an Azure IoT hub with:
* A messaging {@link azure-iothub.Client} using either AMQP or AMQP over Websockets that enables:
* - sending cloud-to-device messages (also known as commands) to devices
* - execute direct methods on devices
* - listening for feedback when cloud-to-device messages are delivered
* - listening for file upload notifications from devices
*
* It also supports Device identity registry operations with the {@link azure-iothub.Registry} object:
* - creating, removing, updating, and listing device identities registered with an IoT hub
* - get and update and query device twins
*
* Finally, the `{@link azure-iothub.JobClient} object allows to schedule long running tasks that:
* - execute direct methods on one or more devices at a specific time
* - update one or more device twins at a specific time
*
* @module azure-iothub
*/
module.exports = {
Client: require('./dist/client.js').Client,
versionQueryString: require('./dist/version.js').versionQueryString,
ConnectionString: require('./dist/connection_string.js'),
Registry: require('./dist/registry.js').Registry,
SharedAccessSignature: require('./dist/shared_access_signature.js'),
Amqp: require('./dist/amqp.js').Amqp,
AmqpWs: require('./dist/amqp_ws.js').AmqpWs,
JobClient: require('./dist/job_client.js').JobClient,
Device: require('./dist/device.js').Device,
Twin: require('./dist/twin.js').Twin,
IoTHubTokenCredentials: require('./dist/auth/iothub_token_credentials').IoTHubTokenCredentials,
DigitalTwinClient: require('./dist/cl/digital_twin_client').DigitalTwinClient
};