11.12.3.4.51. Function iot_agent_utils_write_edgelock2go_datastore

11.12.3.4.51.1. Function Documentation

iot_agent_status_t iot_agent_utils_write_edgelock2go_datastore(iot_agent_keystore_t *keystore, iot_agent_datastore_t *datastore, const char *hostname, uint32_t port, const pb_bytes_array_t *trusted_root_ca_certificates)

Assemble a service descriptor for the connection to EdgeLock 2GO cloud service and write it to a datastore.

It is assumed that credentials (either ECC or RSA) for client certificate authentication are stored in keystore.