AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <IotJobsClient.h>
The AWS IoT jobs service can be used to define a set of remote operations that are sent to and executed on one or more devices connected to AWS IoT.
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#jobs-mqtt-api
Aws::Iotjobs::IotJobsClient::IotJobsClient | ( | const std::shared_ptr< Aws::Crt::Mqtt::MqttConnection > & | connection | ) |
Aws::Iotjobs::IotJobsClient::IotJobsClient | ( | const std::shared_ptr< Aws::Crt::Mqtt5::Mqtt5Client > & | mqtt5Client | ) |
|
noexcept |
|
noexcept |
bool Aws::Iotjobs::IotJobsClient::PublishDescribeJobExecution | ( | const Aws::Iotjobs::DescribeJobExecutionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Gets detailed information about a job execution.
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-describejobexecution
Publish a DescribeJobExecution 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::Iotjobs::IotJobsClient::PublishGetPendingJobExecutions | ( | const Aws::Iotjobs::GetPendingJobExecutionsRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Gets the list of all jobs for a thing that are not in a terminal state.
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-getpendingjobexecutions
Publish a GetPendingJobExecutions 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::Iotjobs::IotJobsClient::PublishStartNextPendingJobExecution | ( | const Aws::Iotjobs::StartNextPendingJobExecutionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Gets and starts the next pending job execution for a thing (status IN_PROGRESS or QUEUED).
Publish a StartNextPendingJobExecution 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::Iotjobs::IotJobsClient::PublishUpdateJobExecution | ( | const Aws::Iotjobs::UpdateJobExecutionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnPublishComplete & | onPubAck | ||
) |
Updates the status of a job execution. You can optionally create a step timer by setting a value for the stepTimeoutInMinutes property. If you don't update the value of this property by running UpdateJobExecution again, the job execution times out when the step timer expires.
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-updatejobexecution
Publish a UpdateJobExecution 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::Iotjobs::IotJobsClient::SubscribeToDescribeJobExecutionAccepted | ( | const Aws::Iotjobs::DescribeJobExecutionSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToDescribeJobExecutionAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic for the DescribeJobExecution operation
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-describejobexecution
Subscribe to DescribeJobExecutionAccepted 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::Iotjobs::IotJobsClient::SubscribeToDescribeJobExecutionRejected | ( | const Aws::Iotjobs::DescribeJobExecutionSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToDescribeJobExecutionRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic for the DescribeJobExecution operation
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-describejobexecution
Subscribe to DescribeJobExecutionRejected 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::Iotjobs::IotJobsClient::SubscribeToGetPendingJobExecutionsAccepted | ( | const Aws::Iotjobs::GetPendingJobExecutionsSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToGetPendingJobExecutionsAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic for the GetPendingJobsExecutions operation
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-getpendingjobexecutions
Subscribe to GetPendingJobExecutionsAccepted 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::Iotjobs::IotJobsClient::SubscribeToGetPendingJobExecutionsRejected | ( | const Aws::Iotjobs::GetPendingJobExecutionsSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToGetPendingJobExecutionsRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic for the GetPendingJobsExecutions operation
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-getpendingjobexecutions
Subscribe to GetPendingJobExecutionsRejected 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::Iotjobs::IotJobsClient::SubscribeToJobExecutionsChangedEvents | ( | const Aws::Iotjobs::JobExecutionsChangedSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToJobExecutionsChangedEventsResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to JobExecutionsChanged notifications for a given IoT thing.
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-jobexecutionschanged
Subscribe to JobExecutionsChangedEvents 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::Iotjobs::IotJobsClient::SubscribeToNextJobExecutionChangedEvents | ( | const Aws::Iotjobs::NextJobExecutionChangedSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToNextJobExecutionChangedEventsResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-nextjobexecutionchanged
Subscribe to NextJobExecutionChangedEvents 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::Iotjobs::IotJobsClient::SubscribeToStartNextPendingJobExecutionAccepted | ( | const Aws::Iotjobs::StartNextPendingJobExecutionSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToStartNextPendingJobExecutionAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic for the StartNextPendingJobExecution operation
Subscribe to StartNextPendingJobExecutionAccepted 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::Iotjobs::IotJobsClient::SubscribeToStartNextPendingJobExecutionRejected | ( | const Aws::Iotjobs::StartNextPendingJobExecutionSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToStartNextPendingJobExecutionRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic for the StartNextPendingJobExecution operation
Subscribe to StartNextPendingJobExecutionRejected 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::Iotjobs::IotJobsClient::SubscribeToUpdateJobExecutionAccepted | ( | const Aws::Iotjobs::UpdateJobExecutionSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToUpdateJobExecutionAcceptedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the accepted topic for the UpdateJobExecution operation
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-updatejobexecution
Subscribe to UpdateJobExecutionAccepted 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::Iotjobs::IotJobsClient::SubscribeToUpdateJobExecutionRejected | ( | const Aws::Iotjobs::UpdateJobExecutionSubscriptionRequest & | request, |
Aws::Crt::Mqtt::QOS | qos, | ||
const OnSubscribeToUpdateJobExecutionRejectedResponse & | handler, | ||
const OnSubscribeComplete & | onSubAck | ||
) |
Subscribes to the rejected topic for the UpdateJobExecution operation
https://docs.aws.amazon.com/iot/latest/developerguide/jobs-api.html#mqtt-updatejobexecution
Subscribe to UpdateJobExecutionRejected 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 |