|
AWS IoT Device SDK C:
Fleet Provisioning
AWS IoT Fleet Provisioning
|
| Return to main page ↑ |
Requests the AWS IoT Core service to register the device, and invokes the user-defined callback with the response it receives from the server.
For registering the device, the service is expected to provide the new certificate, and optionally set up the Thing, Attributes and other cloud settings based on the fleet provisioning template and device context information that are passed to the API.
Also, the AWS IoT account being connected to for registering the device SHOULD have a fleet provisioning template created, whose template name should be passed to this API for requesting device registration.
| [in] | connection | The MQTT connection handle to the user AWS IoT account that will be used for registering the device. |
| [in] | pProvisioningDataInfo | The data (including the certificate) that needs to be sent to the server for registering the device. |
| [in] | timeoutMs | The timeout (in milliseconds) for a response from the server. If there is a timeout, this function returns AWS_IOT_PROVISIONING_TIMEOUT. |
| [in] | pResponseCallback | The user-defined functor that will be called with the response received from the server, whether post-provisioning data in case of success OR error message in case of server rejection of registration request. |