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

One-time initialization function for the Jobs library.

AwsIotJobsError_t AwsIotJobs_Init( uint32_t mqttTimeoutMs );

This function performs internal setup of the Jobs library. It must be called once (and only once) before calling any other Jobs function. Calling this function more than once without first calling AwsIotJobs_Cleanup may result in a crash.

Parameters
[in]mqttTimeoutMsThe amount of time (in milliseconds) that the Jobs library will wait for MQTT operations. Optional; set this to 0 to use AWS_IOT_JOBS_DEFAULT_MQTT_TIMEOUT_MS.
Returns
One of the following:
Warning
No thread-safety guarantees are provided for this function.
See also
AwsIotJobs_Cleanup