AWS IoT Device SDK C: Shadow
AWS IoT Device Shadow library
Return to main page ↑
AwsIotShadow_Init

One-time initialization function for the Shadow library.

AwsIotShadowError_t AwsIotShadow_Init( uint32_t mqttTimeoutMs );

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

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