11.12.3.4.45. Function iot_agent_update_device_configuration¶
Defined in File nxp_iot_agent.h
11.12.3.4.45.1. Function Documentation¶
-
iot_agent_status_t
iot_agent_update_device_configuration
(iot_agent_context_t *ctx, nxp_iot_UpdateStatusReport *status_report)¶ Update device configuration Reach out to EdgeLock 2GO cloud service for checking and (if applicable) fetching configuration updates for the device.
- Post
In case of success, the status_report structure is filled using dynamically allocated fields and needs to be freed after usage by calling #iot_agent_free_status_report.
- Parameters
[in] ctx
: Context for the iot_agent.[out] status_report
: Provides a more detailed view on the operations performed during the update and its outcomes. If the argument is NULL, no detailed status is reported.
- Return Value
IOT_AGENT_SUCCESS
: Upon successIOT_AGENT_FAILURE
: Upon failure