AWS IoT Jobs v1.5.1
Client library for AWS IoT Jobs
 
Loading...
Searching...
No Matches
Jobs_IsJobUpdateStatus
bool Jobs_IsJobUpdateStatus( const char * topic,
const size_t topicLength,
const char * jobId,
const size_t jobIdLength,
const char * thingName,
const size_t thingNameLength,
JobUpdateStatus_t expectedStatus );
JobUpdateStatus_t
Status codes for job update status.
Definition: jobs.h:279
bool Jobs_IsJobUpdateStatus(const char *topic, const size_t topicLength, const char *jobId, const size_t jobIdLength, const char *thingName, const size_t thingNameLength, JobUpdateStatus_t expectedStatus)
Checks if a message comes from the update/accepted reserved topic.
Definition: jobs.c:866

Checks if a message comes from the update/accepted reserved topic.

Parameters
topicThe topic to check against
topicLengthThe expected topic length
jobIdCorresponding Job ID which the update was accepted for
jobIdLengthThe Job ID length
thingNameThe device's thingName as registered with AWS IoT.
thingNameLengthThe length of the thingName.
expectedStatusThe job update status reported by AWS IoT Jobs
Returns
true If the topic is the update/<expectedStatus> topic
false If the topic is not the update/<expectedStatus> topic