The AWS IoT Device SDK for Rust allows developers to write Rust to use their devices to access the AWS IoT platform through MQTT. This is my first crate, and project, in Rust, and as I am still learning it will hopefully get a lot better with time. With the client you can publish and subscribe to topics and add callbacks that are associated with topics. The shadow manager updates, gets, publishes and deletes the device shadow.
It has been through the Works on My Machine Certification Program, and it Works on My Machine™.
This SDK is unofficial. Please use it at your own risk.
- Download AmazonRootCA1.pem into
certs
dir. - Place your client certificate and private key in
certs
dir ascertificate.pem.crt
andprivate.pem.key
.
- Edit
src/main_pubsub.rs
and replaceIOT_ENDPOINT
value with yours. - Execute following command to run the example.
$ cargo run --bin pubsub
- Edit
src/main_shadow.rs
and replaceIOT_ENDPOINT
andTHING_NAME
values with yours. - Execute following command to run the example.
$ cargo run --bin shadow
MIT