11.12.3.4.52. Function iot_agent_utils_write_edgelock2go_datastore_from_env¶
Defined in File nxp_iot_agent_utils.h
11.12.3.4.52.1. Function Documentation¶
-
iot_agent_status_t
iot_agent_utils_write_edgelock2go_datastore_from_env
(iot_agent_keystore_t *keystore, iot_agent_datastore_t *datastore)¶ Assemble a service descriptor for the connection to EdgeLock 2GO cloud service and write it to a datastore.
Per default this function takes the hostname and port from the defines
EDGELOCK2GO_HOSTNAME and
EDGELOCK2GO_PORT
For testing purposes, it is possible to set-up the connection parameters to the EdgeLock 2GO cloud service from externally by passing in information via environment variables.
The following env variables are considered:
IOT_AGENT_TEST_EDGELOCK2GO_HOSTNAME
IOT_AGENT_TEST_EDGELOCK2GO_PORT
It is assumed that credentials (either ECC or RSA) for client certificate authentication are stored in
keystore
.