Skip to content

Commit

Permalink
readme fixes (#530)
Browse files Browse the repository at this point in the history
* sample readme fixes

* add verbosity.txt asset file check to android sample
  • Loading branch information
sbSteveK authored Jan 23, 2024
1 parent 99c68c6 commit fbb0d32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions samples/Android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ files linked below.
* `rootca.pem` - override the default system trust store
* `clientId.txt` - specifies --clientId CLI argument
* `port.txt` - specifies --port CLI argument
* `verbosity.txt` - specifies --verbosity CLI argument

# Build and install sample app

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private void loadAssets(){
resourceNames.add("message.txt");
resourceNames.add("thingName.txt");
resourceNames.add("rootca.pem");
resourceNames.add("verbosity.txt");

// Copy to cache and store file locations for file assets and contents for .txt assets
for (String resourceName : resourceNames) {
Expand Down Expand Up @@ -291,7 +292,7 @@ private void runSample(String sampleName, String sampleClassName){
onSampleComplete();
return;
}
new Thread(new SampleRunnable(sampleArgs(sampleClassName), main), "sample_runner").start();
new Thread(new SampleRunnable(args, main), "sample_runner").start();
}
} catch (Exception e) {
writeToConsole("Exception encountered: " + e.toString());
Expand Down
4 changes: 2 additions & 2 deletions samples/Pkcs12Connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ Note that in a real application, you may want to avoid the use of wildcards in y
To run the PKCS12 connect use the following command:

```sh
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>"
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>"
```

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

```sh
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>"
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>"
```

### How to setup and run
Expand Down

0 comments on commit fbb0d32

Please sign in to comment.