11.12.3.4.29. Function iot_agent_register_datastore

11.12.3.4.29.1. Function Documentation

iot_agent_status_t iot_agent_register_datastore(iot_agent_context_t *ctx, iot_agent_datastore_t *datastore)

Register datastore endpoint.

Note that the ownership for the datastore is not transferred. The caller is responsible that the datastore is freed at the appropriate time.

It is not possible to register two endpoints with the same identifier.

Parameters
  • [in] ctx: Context for the iot_agent.

  • [in] datastore: Datastore that is registered.

Return Value
  • IOT_AGENT_SUCCESS: Upon success