A new AWS IoT Device SDK is now available. It is a complete rework, built to improve reliability, performance, and security. We invite your feedback! The aws-iot-device-sdk.js package allows developers to write JavaScript applications that access the AWS IoT Platform via MQTT or MQTT over the Secure WebSocket Protocol. It can be used in Node.js environments as well as in-browser applications. This package is built on top of mqtt.js and provides three classes: 'device', 'thingShadow' and 'jobs'. The 'device' class wraps mqtt.js to provide a secure connection to the AWS IoT platform and expose the mqtt.js interfaces upward. It provides features to simplify the handling of intermittent connections, including progressive backoff retries, automatic re-subscription upon connection and queued offline publishing with a configurable drain rate. Beginning with Release v2.2.0 of the SDK, AWS collects usage metrics indicating which language and version of the SDK is being used.
Features
- The 'thingShadow' class implements additional functionality for accessing Thing Shadows via the AWS IoT API
- The 'jobs' class implements functionality to interact with the AWS IoT Jobs service
- The user can also update the device's Thing Shadow in AWS IoT and the remote device will synchronize with the new state
- AWS IoT Node.js SDK will only support Node version 4 or above
- Included in this package is an example 'agent'
- Rotation of security certificates, device reboots, and custom device specific management tasks