Skip to content

Implement service client for IoT commands #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<module>samples/Provisioning/Basic</module>
<module>samples/Provisioning/Csr</module>
<module>samples/JobsSandbox</module>
<module>samples/CommandsSandbox</module>
<module>samples/ShadowSandbox</module>
<module>samples/Mqtt5/PubSub</module>
<module>samples/Mqtt5/SharedSubscription</module>
Expand Down
434 changes: 434 additions & 0 deletions samples/CommandsSandbox/README.md

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions samples/CommandsSandbox/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
<artifactId>CommandsSandbox</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Interactive sample using the MQTT Commands service</description>
<url>https://github.com/awslabs/aws-iot-device-sdk-java-v2</url>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>iot</artifactId>
<version>2.31.44</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>iotjobsdataplane</artifactId>
<version>2.31.44</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
<version>2.31.44</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>latest-release</id>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
<artifactId>aws-iot-device-sdk</artifactId>
<version>1.25.1</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
<artifactId>aws-iot-device-sdk</artifactId>
<version>1.0.0-SNAPSHOT </version>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
681 changes: 681 additions & 0 deletions samples/CommandsSandbox/src/main/java/commands/CommandsSandbox.java

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
## Other Samples
* [Shadow](./ShadowSandbox/README.md)
* [Jobs](./JobsSandbox/README.md)
* [Commands](./CommandsSandbox/README.md)
* [Fleet Provisioning](./Provisioning/Basic/README.md)
* [Fleet Provisioning with CSR](./Provisioning/Csr/README.md)
* [Android Sample](./Android/README.md)
Expand Down
10 changes: 8 additions & 2 deletions sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>iot</artifactId>
<version>2.30.9</version>
<version>2.31.44</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>iotjobsdataplane</artifactId>
<version>2.31.44</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
<version>2.30.9</version>
<version>2.31.44</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Loading