You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Splits the PubSub sample down into smaller connect samples that show how just how to make a connection.
* Simplified command line parsing
* Fixed tests not working correctly after simplified command line parsing
* Added action support to command line parser
* Added additional command groups
* Split PubSub sample into smaller connect samples
* Fixed codebuild tests to work with sample split
* Adjusted code based on code review:
* Added PubSub sample back to codebuild tests
* Simplified connection samples by using utility functions in command_line_utils
* Removed PKCS11 PubSub sample (since it's replaced by PKCS11 connect sample)
* Added PKCS11 connection builder function to command_line_utils
* Converted Windows Cert PubSub to Windows Cert Connect
* Adjusted README to use consistent command format
* Fixed diff being included in fleet provision sample
This sample makes an MQTT connection using a certificate and key file. On startup, the device connects to the server using the certificate and key files, and then disconnects.
88
+
This sample is for reference on connecting via certificate and key files.
74
89
75
-
This sample is similar to the basic [PubSub](#pubsub),
This sample makes an MQTT connection via websockets and then disconnects. On startup, the device connects to the server via websockets and then disconnects.
125
+
This sample is for reference on connecting via websockets.
Note that using Websockets will attempt to fetch the AWS credentials from your enviornment variables or local files. See the [authorizing direct AWS](https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html) page for documentation on how to get the AWS credentials, which then you can set to the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS`, and `AWS_SESSION_TOKEN` environment variables.
160
+
161
+
## PKCS#11 Connect
162
+
163
+
This sample is similar to the [Basic Connect](#basic-connect),
76
164
but the private key for mutual TLS is stored on a PKCS#11 compatible smart card or Hardware Security Module (HSM)
77
165
78
166
WARNING: Unix only. Currently, TLS integration with PKCS#11 is only available on Unix devices.
0 commit comments