11.12.3.4.46. Function iot_agent_update_device_configuration_from_constants¶
Defined in File nxp_iot_agent.h
11.12.3.4.46.1. Function Documentation¶
-
iot_agent_status_t
iot_agent_update_device_configuration_from_constants
(iot_agent_context_t *agent_context, uint32_t client_key_object_id, uint32_t client_cert_object_id, 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.
The connection details (hostname/port/server root certificates, etc.) are taken from the configuration constants in nxp_iot_agent_config.h.
It is necessary that an sss keystore that contains credentials (client key and client certificate) for connecting to the EdgeLock 2GO cloud service. The object ids to those credentials are settable via function arguments.
- 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