Skip to content

Commit fbb0d32

Browse files
authored
readme fixes (#530)
* sample readme fixes * add verbosity.txt asset file check to android sample
1 parent 99c68c6 commit fbb0d32

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

samples/Android/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ files linked below.
4949
* `rootca.pem` - override the default system trust store
5050
* `clientId.txt` - specifies --clientId CLI argument
5151
* `port.txt` - specifies --port CLI argument
52+
* `verbosity.txt` - specifies --verbosity CLI argument
5253

5354
# Build and install sample app
5455

samples/Android/app/src/main/java/software/amazon/awssdk/iotsamples/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private void loadAssets(){
151151
resourceNames.add("message.txt");
152152
resourceNames.add("thingName.txt");
153153
resourceNames.add("rootca.pem");
154+
resourceNames.add("verbosity.txt");
154155

155156
// Copy to cache and store file locations for file assets and contents for .txt assets
156157
for (String resourceName : resourceNames) {
@@ -291,7 +292,7 @@ private void runSample(String sampleName, String sampleClassName){
291292
onSampleComplete();
292293
return;
293294
}
294-
new Thread(new SampleRunnable(sampleArgs(sampleClassName), main), "sample_runner").start();
295+
new Thread(new SampleRunnable(args, main), "sample_runner").start();
295296
}
296297
} catch (Exception e) {
297298
writeToConsole("Exception encountered: " + e.toString());

samples/Pkcs12Connect/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Note that in a real application, you may want to avoid the use of wildcards in y
4040
To run the PKCS12 connect use the following command:
4141

4242
```sh
43-
mvn compile exec:java -pl samples/Pkcs12Connect -Dexec.mainClass=pkcs12connect.Pkcs12Connect -Dexec.args="--endpoint <endpoint> --pkcs12_file <path to PKCS12 file> --pkcs12_file <password for PKCS12 file>"
43+
mvn compile exec:java -pl samples/Pkcs12Connect -Dexec.mainClass=pkcs12connect.Pkcs12Connect -Dexec.args="--endpoint <endpoint> --pkcs12_file <path to PKCS12 file> --pkcs12_password <password for PKCS12 file>"
4444
```
4545

4646
You can also pass a Certificate Authority file (CA) if your certificate and key combination requires it:
4747

4848
```sh
49-
mvn compile exec:java -pl samples/Pkcs12Connect -Dexec.mainClass=pkcs12connect.Pkcs12Connect -Dexec.args="--endpoint <endpoint> --pkcs12_file <path to PKCS12 file> --pkcs12_file <password for PKCS12 file> --ca_file <path to CA file>"
49+
mvn compile exec:java -pl samples/Pkcs12Connect -Dexec.mainClass=pkcs12connect.Pkcs12Connect -Dexec.args="--endpoint <endpoint> --pkcs12_file <path to PKCS12 file> --pkcs12_password <password for PKCS12 file> --ca_file <path to CA file>"
5050
```
5151

5252
### How to setup and run

0 commit comments

Comments
 (0)