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

◆ wifi_credentials_get_by_ssid_personal_struct()

int wifi_credentials_get_by_ssid_personal_struct ( const char * ssid,
size_t ssid_len,
struct wifi_credentials_personal * buf )

#include <include/net/wifi_credentials.h>

Get credentials for given SSID by struct.

Parameters
[in]ssidSSID to look for
[in]ssid_lenlength of SSID
[out]bufcredentials Pointer to struct where credentials are stored
Returns
0 Success.
-ENOENT No network with this SSID was found.
-EINVAL A required buffer was NULL or too small.
-EPROTO The network with this SSID is not a personal network.