AWS IoT Device SDK C: Jobs
AWS IoT Jobs library
Return to main page ↑
AwsIotJobs_StartNextSync

Start the next pending job execution for a Thing with a timeout for receiving the response.

const AwsIotJobsUpdateInfo_t * pUpdateInfo,
uint32_t flags,
uint32_t timeoutMs,
AwsIotJobsResponse_t * const pJobsResponse );

This function queues a Jobs START NEXT, then waits for the result. Internally, this function is a call to AwsIotJobs_StartNextAsync followed by AwsIotJobs_Wait. See AwsIotJobs_StartNextAsync for more information on the Jobs START NEXT command.

Parameters
[in]pRequestInfoJobs request parameters.
[in]pUpdateInfoJobs update parameters.
[in]flagsFlags which modify the behavior of the Jobs request. See Jobs Function Flags.
[in]timeoutMsIf a response is not received within this timeout, this function returns AWS_IOT_JOBS_TIMEOUT.
[out]pJobsResponseThe response received from the Jobs service.
Returns
One of the following: