Function register_thing
pub async fn register_thing<Iter: IntoIterator<Item = (String, String)>>(
client: MqttClient,
info: &DeviceCertificateInfo,
template_name: impl AsRef<str>,
parameters: Option<Iter>,
) -> Result<RegisterThingResponse, Error>Expand description
Registers a new device with the AWS IoT Core service using the provided device certificate information and provisioning template.
§Arguments
client- The MQTT client to use for the registration request.info- TheDeviceCertificateInfocontaining the certificate and keys to use for the registration.template_name- The name of the provisioning template to use for the registration.parameters- Optional parameters to pass to the provisioning template.
§Returns
A Result containing the RegisterThingResponse if the registration is
successful, or a ProvisionError if the registration is rejected.