Skip to content

Instantly share code, notes, and snippets.

@lashex
Created May 23, 2016 21:05
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save lashex/12b6fa8327fc07e191d387290e81d39e to your computer and use it in GitHub Desktop.
Save lashex/12b6fa8327fc07e191d387290e81d39e to your computer and use it in GitHub Desktop.
Example Mosquitto CLI pub/sub using AWS IoT MQTT endpoint
The Mosquitto Pub CLI
$> mosquitto_pub --cert thing-0.pem --key thing-0.prv --cafile aws-iot-rootCA.crt -h XXXXXXXXYYYYY.iot.us-west-2.amazonaws.com -p 8883 -t 'test/thing' -m "Hello from Mosquitto"
The Mosquitto Sub CLI
$ mosquitto_sub --cert thing-0.pem --key thing-0.prv --cafile aws-iot-rootCA.crt -h XXXXXXXXYYYYY.iot.us-west-2.amazonaws.com -p 8883 -t 'test/+'
@Webdevava
Copy link

thanks alot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment