nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_cloud_credentials_configured_check()

int nrf_cloud_credentials_configured_check ( void )

#include <include/net/nrf_cloud.h>

Check if the credentials required for connecting to nRF Cloud exist. The application's configuration is used to determine which credentials are required. Check the size of the root CA certificates installed and return an error code if the size of the root CA certificate(s) is not appropriate for the configured transport type.

Return values
0Required credentials exist.
-EIOError checking if credentials exists.
-ENOTSUPRequired credentials do not exist.
-ENOPROTOOPTSize of root CA is not appropriate for the configured transport type.
Returns
A negative value indicates an error.