Skip to content

Commit 2839143

Browse files
authored
Implement service client for IoT commands (#630)
1 parent f4d63ed commit 2839143

21 files changed

+2632
-23
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<module>samples/Provisioning/Basic</module>
2525
<module>samples/Provisioning/Csr</module>
2626
<module>samples/JobsSandbox</module>
27+
<module>samples/CommandsSandbox</module>
2728
<module>samples/ShadowSandbox</module>
2829
<module>samples/Mqtt5/PubSub</module>
2930
<module>samples/Mqtt5/SharedSubscription</module>

samples/CommandsSandbox/README.md

Lines changed: 434 additions & 0 deletions
Large diffs are not rendered by default.

samples/CommandsSandbox/pom.xml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
5+
<artifactId>CommandsSandbox</artifactId>
6+
<packaging>jar</packaging>
7+
<version>1.0-SNAPSHOT</version>
8+
<name>${project.groupId}:${project.artifactId}</name>
9+
<description>Interactive sample using the MQTT Commands service</description>
10+
<url>https://github.com/awslabs/aws-iot-device-sdk-java-v2</url>
11+
<properties>
12+
<maven.compiler.source>1.8</maven.compiler.source>
13+
<maven.compiler.target>1.8</maven.compiler.target>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
</properties>
16+
<dependencies>
17+
<dependency>
18+
<groupId>commons-cli</groupId>
19+
<artifactId>commons-cli</artifactId>
20+
<version>1.9.0</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>software.amazon.awssdk</groupId>
24+
<artifactId>iot</artifactId>
25+
<version>2.31.44</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>software.amazon.awssdk</groupId>
29+
<artifactId>iotjobsdataplane</artifactId>
30+
<version>2.31.44</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>software.amazon.awssdk</groupId>
34+
<artifactId>sts</artifactId>
35+
<version>2.31.44</version>
36+
</dependency>
37+
</dependencies>
38+
<profiles>
39+
<profile>
40+
<id>latest-release</id>
41+
<dependencies>
42+
<dependency>
43+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
44+
<artifactId>aws-iot-device-sdk</artifactId>
45+
<version>1.25.1</version>
46+
</dependency>
47+
</dependencies>
48+
</profile>
49+
<profile>
50+
<id>default</id>
51+
<activation>
52+
<activeByDefault>true</activeByDefault>
53+
</activation>
54+
<dependencies>
55+
<dependency>
56+
<groupId>software.amazon.awssdk.iotdevicesdk</groupId>
57+
<artifactId>aws-iot-device-sdk</artifactId>
58+
<version>1.0.0-SNAPSHOT </version>
59+
</dependency>
60+
</dependencies>
61+
</profile>
62+
</profiles>
63+
</project>

samples/CommandsSandbox/src/main/java/commands/CommandsSandbox.java

Lines changed: 681 additions & 0 deletions
Large diffs are not rendered by default.

samples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
## Other Samples
2929
* [Shadow](./ShadowSandbox/README.md)
3030
* [Jobs](./JobsSandbox/README.md)
31+
* [Commands](./CommandsSandbox/README.md)
3132
* [Fleet Provisioning](./Provisioning/Basic/README.md)
3233
* [Fleet Provisioning with CSR](./Provisioning/Csr/README.md)
3334
* [Android Sample](./Android/README.md)

sdk/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@
4242
<dependency>
4343
<groupId>software.amazon.awssdk</groupId>
4444
<artifactId>iot</artifactId>
45-
<version>2.30.9</version>
45+
<version>2.31.44</version>
46+
<scope>test</scope>
47+
</dependency>
48+
<dependency>
49+
<groupId>software.amazon.awssdk</groupId>
50+
<artifactId>iotjobsdataplane</artifactId>
51+
<version>2.31.44</version>
4652
<scope>test</scope>
4753
</dependency>
4854
<dependency>
4955
<groupId>software.amazon.awssdk</groupId>
5056
<artifactId>sts</artifactId>
51-
<version>2.30.9</version>
57+
<version>2.31.44</version>
5258
<scope>test</scope>
5359
</dependency>
5460
<dependency>

0 commit comments

Comments
 (0)