AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <IotIdentityClient.h>
An AWS IoT service that assists with provisioning a device and installing unique client certificates on it
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html
Aws::Iotidentity::IotIdentityClient::IotIdentityClient | ( | const std::shared_ptr< Aws::Crt::Mqtt::MqttConnection > & | connection | ) |
Aws::Iotidentity::IotIdentityClient::IotIdentityClient | ( | const std::shared_ptr< Aws::Crt::Mqtt5::Mqtt5Client > & | mqtt5Client | ) |
|
noexcept |
|
noexcept |
bool Aws::Iotidentity::IotIdentityClient::PublishCreateCertificateFromCsr | ( | const Aws::Iotidentity::CreateCertificateFromCsrRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Creates a certificate from a certificate signing request (CSR). AWS IoT provides client certificates that are signed by the Amazon Root certificate authority (CA). The new certificate has a PENDING_ACTIVATION status. When you call RegisterThing to provision a thing with this certificate, the certificate status changes to ACTIVE or INACTIVE as described in the template.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Publish a CreateCertificateFromCsr message. If the device is offline, the PUBLISH packet will be sent once the connection resumes.
request | Message to be serialized and sent |
qos | Quality of Service for delivering this message |
onPubAck | callback when the publish "completes" (see below) |
bool Aws::Iotidentity::IotIdentityClient::PublishCreateKeysAndCertificate | ( | const Aws::Iotidentity::CreateKeysAndCertificateRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Creates new keys and a certificate. AWS IoT provides client certificates that are signed by the Amazon Root certificate authority (CA). The new certificate has a PENDING_ACTIVATION status. When you call RegisterThing to provision a thing with this certificate, the certificate status changes to ACTIVE or INACTIVE as described in the template.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Publish a CreateKeysAndCertificate message. If the device is offline, the PUBLISH packet will be sent once the connection resumes.
request | Message to be serialized and sent |
qos | Quality of Service for delivering this message |
onPubAck | callback when the publish "completes" (see below) |
bool Aws::Iotidentity::IotIdentityClient::PublishRegisterThing | ( | const Aws::Iotidentity::RegisterThingRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Provisions an AWS IoT thing using a pre-defined template.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Publish a RegisterThing message. If the device is offline, the PUBLISH packet will be sent once the connection resumes.
request | Message to be serialized and sent |
qos | Quality of Service for delivering this message |
onPubAck | callback when the publish "completes" (see below) |
bool Aws::Iotidentity::IotIdentityClient::SubscribeToCreateCertificateFromCsrAccepted | ( | const Aws::Iotidentity::CreateCertificateFromCsrSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToCreateCertificateFromCsrAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic of the CreateCertificateFromCsr operation.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Subscribe to CreateCertificateFromCsrAccepted messages
Once subscribed, handler
is invoked each time a message matching the topic
is received. It is possible for such messages to arrive before the SUBACK is received.
request | Subscription request configuration |
qos | Maximum requested QoS that server may use when sending messages to the client. The server may grant a lower QoS in the SUBACK |
handler | callback function to invoke with messages received on the subscription topic |
onSubAck | callback function invoked on receipt of the SUBACK from the server |
bool Aws::Iotidentity::IotIdentityClient::SubscribeToCreateCertificateFromCsrRejected | ( | const Aws::Iotidentity::CreateCertificateFromCsrSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToCreateCertificateFromCsrRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic of the CreateCertificateFromCsr operation.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Subscribe to CreateCertificateFromCsrRejected messages
Once subscribed, handler
is invoked each time a message matching the topic
is received. It is possible for such messages to arrive before the SUBACK is received.
request | Subscription request configuration |
qos | Maximum requested QoS that server may use when sending messages to the client. The server may grant a lower QoS in the SUBACK |
handler | callback function to invoke with messages received on the subscription topic |
onSubAck | callback function invoked on receipt of the SUBACK from the server |
bool Aws::Iotidentity::IotIdentityClient::SubscribeToCreateKeysAndCertificateAccepted | ( | const Aws::Iotidentity::CreateKeysAndCertificateSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToCreateKeysAndCertificateAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic of the CreateKeysAndCertificate operation.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Subscribe to CreateKeysAndCertificateAccepted messages
Once subscribed, handler
is invoked each time a message matching the topic
is received. It is possible for such messages to arrive before the SUBACK is received.
request | Subscription request configuration |
qos | Maximum requested QoS that server may use when sending messages to the client. The server may grant a lower QoS in the SUBACK |
handler | callback function to invoke with messages received on the subscription topic |
onSubAck | callback function invoked on receipt of the SUBACK from the server |
bool Aws::Iotidentity::IotIdentityClient::SubscribeToCreateKeysAndCertificateRejected | ( | const Aws::Iotidentity::CreateKeysAndCertificateSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToCreateKeysAndCertificateRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic of the CreateKeysAndCertificate operation.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Subscribe to CreateKeysAndCertificateRejected messages
Once subscribed, handler
is invoked each time a message matching the topic
is received. It is possible for such messages to arrive before the SUBACK is received.
request | Subscription request configuration |
qos | Maximum requested QoS that server may use when sending messages to the client. The server may grant a lower QoS in the SUBACK |
handler | callback function to invoke with messages received on the subscription topic |
onSubAck | callback function invoked on receipt of the SUBACK from the server |
bool Aws::Iotidentity::IotIdentityClient::SubscribeToRegisterThingAccepted | ( | const Aws::Iotidentity::RegisterThingSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToRegisterThingAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic of the RegisterThing operation.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Subscribe to RegisterThingAccepted messages
Once subscribed, handler
is invoked each time a message matching the topic
is received. It is possible for such messages to arrive before the SUBACK is received.
request | Subscription request configuration |
qos | Maximum requested QoS that server may use when sending messages to the client. The server may grant a lower QoS in the SUBACK |
handler | callback function to invoke with messages received on the subscription topic |
onSubAck | callback function invoked on receipt of the SUBACK from the server |
bool Aws::Iotidentity::IotIdentityClient::SubscribeToRegisterThingRejected | ( | const Aws::Iotidentity::RegisterThingSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToRegisterThingRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic of the RegisterThing operation.
https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#fleet-provision-api
Subscribe to RegisterThingRejected messages
Once subscribed, handler
is invoked each time a message matching the topic
is received. It is possible for such messages to arrive before the SUBACK is received.
request | Subscription request configuration |
qos | Maximum requested QoS that server may use when sending messages to the client. The server may grant a lower QoS in the SUBACK |
handler | callback function to invoke with messages received on the subscription topic |
onSubAck | callback function invoked on receipt of the SUBACK from the server |