Module iot_device_bridge::fleet_provisioning
source · [−]Expand description
An implementation of the “Provisioning by Claim” workflow of the Fleet Provisioning feature of AWS IoT Core.
- Establishes an MQTT connection with AWS IoT Core using the Claim Credentials (general certificate).
- Generates a Key Pair.
- Calls the CreateCertificateWithCsr MQTT API to request a certificate for the Certificate Signing Request of the key-pair generated.
- Calls the RegisterThing MQTT API to create an AWS IoT Thing with the provisioned certificate.
- After getting provisioned with a new certificate, creates a new MQTT connection with AWS IoT Core with the new provisioned credentials.
Entry point: ‘pub async fn
fleet_provisioning
() -> Result<(), Box>’
Functions
Entry poing for the workflow of Fleet Provisioning.