Last active
September 20, 2022 10:08
-
-
Save HQarroum/ec13dc1f74facbe94a7d7c33eb1da03f to your computer and use it in GitHub Desktop.
Example of using mosquitto_pub with ALPN extensions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mosquitto_pub \ | |
--cert path/to/certificate.pem.crt \ | |
--key path/to/private/key.pem.key \ | |
--cafile path/to/AmazonRootCA1.pem \ | |
--host <id>-ats.iot.<region>.amazonaws.com \ | |
--port 443 \ | |
--tls-alpn "x-amzn-mqtt-ca" \ | |
--topic "device/telemetry" \ | |
--message "foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment