The AWS IoT Device SDK for JavaScript v2 connects your JavaScript applications and devices to the AWS IoT platform. It handles the complexities of secure communication, authentication, and device management so you can focus on your IoT solution. The SDK makes it easy to use AWS IoT services like Device Shadows, Jobs, and Fleet Provisioning.
Supported Platforms: Linux, Windows 11+, macOS 14+
Note: The SDK is known to work on older platform versions, but we only guarantee compatibility for the platforms listed above.
The primary purpose of the AWS IoT Device SDK for JavaScript v2 is to simplify the process of connecting devices to AWS IoT Core and interacting with AWS IoT services on various platforms. The SDK provides:
Integrated service clients for AWS IoT Core services
Secure device connections to AWS IoT Core using MQTT protocol including MQTT 5.0
Navigate to your JavaScript project directory and install the SDK:
cd <your-javascript-project>
npm install aws-iot-device-sdk-v2
Building from source
See the Development Guide for detailed instructions on building from source and using local builds.
Getting Started
To get started with the AWS IoT Device SDK for JavaScript v2:
Install the SDK - See the Installation section for installation details
Choose your connection method - The SDK supports multiple authentication methods including X.509 certificates, AWS credentials, and custom authentication. MQTT5 User Guide connection section provides more guidance
Follow a complete example - Check out the samples directory
Learn MQTT5 features - For advanced usage and configuration options, see the MQTT5 User Guide
The samples provide ready-to-run code with detailed setup instructions for each authentication method and use case.
Samples
Check out the samples directory for working code examples that demonstrate:
AWS IoT Device SDK for JavaScript v2
The AWS IoT Device SDK for JavaScript v2 connects your JavaScript applications and devices to the AWS IoT platform. It handles the complexities of secure communication, authentication, and device management so you can focus on your IoT solution. The SDK makes it easy to use AWS IoT services like Device Shadows, Jobs, and Fleet Provisioning.
Supported Platforms: Linux, Windows 11+, macOS 14+
Topics:
Features
The primary purpose of the AWS IoT Device SDK for JavaScript v2 is to simplify the process of connecting devices to AWS IoT Core and interacting with AWS IoT services on various platforms. The SDK provides:
Supported AWS IoT Core services
Installation
The recommended way to use the AWS IoT Device SDK for JavaScript v2 in your project is to install it from npm.
Minimum Requirements
To develop applications with the AWS IoT Device SDK for JavaScript v2, you need:
node -vto check Node versionSee detailed setup instructions for more information.
Installing from npm
Navigate to your JavaScript project directory and install the SDK:
Building from source
See the Development Guide for detailed instructions on building from source and using local builds.
Getting Started
To get started with the AWS IoT Device SDK for JavaScript v2:
Install the SDK - See the Installation section for installation details
Choose your connection method - The SDK supports multiple authentication methods including X.509 certificates, AWS credentials, and custom authentication. MQTT5 User Guide connection section provides more guidance
Follow a complete example - Check out the samples directory
Learn MQTT5 features - For advanced usage and configuration options, see the MQTT5 User Guide
The samples provide ready-to-run code with detailed setup instructions for each authentication method and use case.
Samples
Check out the samples directory for working code examples that demonstrate:
The samples provide ready-to-run code with detailed setup instructions for each authentication method and use case.
Getting Help
The best way to interact with our team is through GitHub.
If you have a support plan with AWS Support, you can also create a new support case.
Resources
Check out our resources for additional guidance too before opening an issue:
License
This library is licensed under the Apache 2.0 License.
Latest released version: v1.25.1