Skip to content

Commit cc15d5b

Browse files
committed
remove basic pubsub
1 parent f00dc4a commit cc15d5b

File tree

4 files changed

+5
-22
lines changed

4 files changed

+5
-22
lines changed

documents/FAQ.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
### Where should I start?
1616

17-
If you are just getting started make sure you [install this sdk](https://github.com/aws/aws-iot-device-sdk-java-v2#installation) and then build and run the [basic PubSub](https://github.com/aws/aws-iot-device-sdk-java-v2/tree/main/samples#pubsub)
17+
If you are just getting started make sure you [install this sdk](https://github.com/aws/aws-iot-device-sdk-java-v2#installation) and then build and run the [Mqtt5 X509 Sample](https://github.com/aws/aws-iot-device-sdk-java-v2/tree/main/samples/Mqtt/Mqtt5X509)
1818

1919
### How do I enable logging?
2020

@@ -32,10 +32,10 @@ To enable logging in the samples, you will need to set the following system prop
3232
* `aws.crt.log.level`: The level of logging shown. Can be `Trace`, `Debug`, `Info`, `Warn`, `Error`, `Fatal`, or `None`. Defaults to `Warn`.
3333
* `aws.crt.log.filename`: The path to save the log file. Only needed if `aws.crt.log.destination` is set to `File`.
3434

35-
For example, to run `BasicPubSub` with logging you could use the following:
35+
For example, to run `Mqtt X509` with logging you could use the following:
3636

3737
```sh
38-
mvn compile exec:java -pl samples/Mqtt/Mqtt5X509 -Daws.crt.debugnative=true -Daws.crt.log.level=Debug -Daws.crt.log.destionation=Stdout -Dexec.mainClass=pubsub.PubSub -Dexec.args='--endpoint <endpoint> --cert <path to cert> --key <path to key>'
38+
mvn compile exec:java -pl samples/Mqtt/Mqtt5X509 -Daws.crt.debugnative=true -Daws.crt.log.level=Debug -Daws.crt.log.destionation=Stdout -Dexec.mainClass=mqtt5x509.Mqtt5X509 -Dexec.args='--endpoint <endpoint> --cert <path to cert> --key <path to key>'
3939
```
4040

4141
You can also enable [CloudWatch logging](https://docs.aws.amazon.com/iot/latest/developerguide/cloud-watch-logs.html) for IoT which will provide you with additional information that is not available on the client side sdk.

documents/MIGRATION_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ samples.
905905
### Example
906906

907907
It's always helpful to look at a working example to see how new functionality works, to be able to tweak different options,
908-
to compare with existing code. For that reason, we implemented a [Publish/Subscribe example](https://github.com/aws/aws-iot-device-sdk-java-v2/tree/main/samples/Mqtt5/PubSub)
909-
([source code](https://github.com/aws/aws-iot-device-sdk-java-v2/blob/main/samples/Mqtt5/PubSub/src/main/java/pubsub/PubSub.java))
908+
to compare with existing code. For that reason, we implemented a [Publish/Subscribe example](https://github.com/aws/aws-iot-device-sdk-java-v2/tree/main/samples/Mqtt/Mqtt5X509)
909+
([source code](https://github.com/aws/aws-iot-device-sdk-java-v2/blob/main/samples/Mqtt/Mqtt5X509/src/main/java/mqtt5x509/Mqtt5X509.java))
910910
in the V2 SDK similar to a sample provided by V1 SDK (see a corresponding [readme section](https://github.com/aws/aws-iot-device-sdk-java/tree/master?tab=readme-ov-file#sample-applications)
911911
and [source code](https://github.com/aws/aws-iot-device-sdk-java/blob/master/aws-iot-device-sdk-java-samples/src/main/java/com/amazonaws/services/iot/client/sample/pubSub/PublishSubscribeSample.java)).
912912

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<modules>
1010
<module>sdk</module>
11-
<module>samples/BasicPubSub</module>
1211
<module>samples/Mqtt/Mqtt5X509</module>
1312
<module>samples/Mqtt/Mqtt5AwsWebsocket</module>
1413
<module>samples/Mqtt/Mqtt5CustomAuthSigned</module>

sdk/tests/android/testapp/src/androidTest/java/software/amazon/awssdk/iottest/MainActivityTest.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ class MainActivityTest {
4141

4242
// Add sample specific file loading here
4343
when(name) {
44-
"pubsub.PubSub" -> {
45-
resourceNames.add("pubSubCertificate.pem")
46-
resourceNames.add("pubSubPrivatekey.pem")
47-
}
4844

4945
"shadow.ShadowSample" -> {
5046
resourceNames.add("shadowCertificate.pem")
@@ -60,11 +56,6 @@ class MainActivityTest {
6056
resourceNames.add("cognitoIdentity.txt")
6157
}
6258

63-
"mqtt5.pubsub.PubSub" -> {
64-
resourceNames.add("mqtt5PubSubCertificate.pem")
65-
resourceNames.add("mqtt5PubSubPrivatekey.pem")
66-
}
67-
6859
"mqtt5x509.Mqtt5X509" -> {
6960
resourceNames.add("mqtt5PubSubCertificate.pem")
7061
resourceNames.add("mqtt5PubSubPrivatekey.pem")
@@ -99,13 +90,6 @@ class MainActivityTest {
9990

10091
// Set sample specific args
10192
when(name){
102-
"pubsub.PubSub" -> {
103-
args.addAll(arrayOf(
104-
"--cert", resourceMap["pubSubCertificate.pem"],
105-
"--key", resourceMap["pubSubPrivatekey.pem"],
106-
"--port", "8883",
107-
"--message", "message.txt", "Hello World From Android"))
108-
}
10993

11094
"jobs.JobsSample" -> {
11195
args.addAll(arrayOf(

0 commit comments

Comments
 (0)