AWS IoT Device SDK C:
Jobs
AWS IoT Jobs library
|
Return to main page ↑ |
Enumerated types of the Jobs library. More...
Enumerated types of the Jobs library.
enum AwsIotJobsError_t |
Return codes of Jobs functions.
The function AwsIotJobs_strerror can be used to get a return code's description.
The values between AWS_IOT_JOBS_INVALID_TOPIC and AWS_IOT_JOBS_TERMINAL_STATE may be returned by the Jobs service upon failure of a Jobs operation. See this page for more information.
Enumerator | |
---|---|
AWS_IOT_JOBS_SUCCESS | Jobs operation completed successfully. Functions that may return this value:
Will also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_STATUS_PENDING | Jobs operation queued, awaiting result. Functions that may return this value: |
AWS_IOT_JOBS_INIT_FAILED | Initialization failed. Functions that may return this value: |
AWS_IOT_JOBS_BAD_PARAMETER | At least one parameter is invalid. Functions that may return this value:
|
AWS_IOT_JOBS_NO_MEMORY | Jobs operation failed because of memory allocation failure. Functions that may return this value: |
AWS_IOT_JOBS_MQTT_ERROR | Jobs operation failed because of failure in MQTT library. Functions that may return this value:
|
AWS_IOT_JOBS_BAD_RESPONSE | Response received from Jobs service not understood. Functions that may return this value:
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_TIMEOUT | A blocking Jobs operation timed out. Functions that may return this value: |
AWS_IOT_JOBS_NOT_INITIALIZED | An API function was called before AwsIotJobs_Init. Functions that may return this value: |
AWS_IOT_JOBS_INVALID_TOPIC | Jobs operation failed: A request was sent to an unknown topic. Functions that may return this value:
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_INVALID_JSON | Jobs operation failed: The contents of the request were not understood. Jobs requests must be UTF-8 encoded JSON documents. Functions that may return this value:
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_INVALID_REQUEST | Jobs operation failed: The contents of the request were invalid. Functions that may return this value:
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_INVALID_STATE | Jobs operation failed: An update attempted to change the job execution to an invalid state. Functions that may return this value: May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_NOT_FOUND | Jobs operation failed: The specified job execution does not exist.
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_VERSION_MISMATCH | Jobs operation failed: The Jobs service expected a version that did not match what was in the request.
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_INTERNAL_ERROR | Jobs operation failed: The Jobs service encountered an internal error. Functions that may return this value:
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_THROTTLED | Jobs operation failed: The request was throttled. Functions that may return this value:
May also be the value of a Jobs operation completion callback's |
AWS_IOT_JOBS_TERMINAL_STATE | Jobs operation failed: Attempt to describe a Job in a terminal state. Functions that may return this value: May also be the value of a Jobs operation completion callback's |
enum AwsIotJobState_t |
Possible states of jobs.
The function AwsIotJobs_StateName can be used to get a state's description.
See this page for more information on Job states.
Enumerator | |
---|---|
AWS_IOT_JOB_STATE_QUEUED | A Job is queued and awaiting execution. |
AWS_IOT_JOB_STATE_IN_PROGRESS | A Job is currently executing. |
AWS_IOT_JOB_STATE_FAILED | A Job has failed. This is a terminal state. |
AWS_IOT_JOB_STATE_SUCCEEDED | A Job has succeeded. This is a terminal state. |
AWS_IOT_JOB_STATE_CANCELED | A Job was canceled. This is a terminal state. |
AWS_IOT_JOB_STATE_TIMED_OUT | A Job's timer has expired. This is a terminal state. Jobs are considered timed out if they remain IN_PROGRESS for more than their |
AWS_IOT_JOB_STATE_REJECTED | A Job was rejected by the device. This is a terminal state. |
AWS_IOT_JOB_STATE_REMOVED | A Job was removed. This is a terminal state. |
Types of Jobs library callbacks.
One of these values will be placed in AwsIotJobsCallbackParam_t.callbackType to identify the reason for invoking a callback function.
Enumerator | |
---|---|
AWS_IOT_JOBS_GET_PENDING_COMPLETE | Callback invoked because a Jobs get pending completed. |
AWS_IOT_JOBS_START_NEXT_COMPLETE | Callback invoked because a Jobs start next completed. |
AWS_IOT_JOBS_DESCRIBE_COMPLETE | Callback invoked because a Jobs describe completed. |
AWS_IOT_JOBS_UPDATE_COMPLETE | Callback invoked because a Jobs update completed. |
AWS_IOT_JOBS_NOTIFY_PENDING_CALLBACK | Callback invoked for an incoming message on a Jobs notify-pending topic. |
AWS_IOT_JOBS_NOTIFY_NEXT_CALLBACK | Callback invoked for an incoming message on a Jobs notify-next topic. |