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

◆ wifi_credentials_get_by_ssid_personal()

int wifi_credentials_get_by_ssid_personal ( const char *  ssid,
size_t  ssid_len,
enum wifi_security_type *  type,
uint8_t *  bssid_buf,
size_t  bssid_buf_len,
char *  password_buf,
size_t  password_buf_len,
size_t *  password_len,
uint32_t *  flags,
uint8_t *  channel,
uint32_t *  timeout 
)

#include <include/net/wifi_credentials.h>

Get credentials for given SSID.

Parameters
[in]ssidSSID to look for
[in]ssid_lenlength of SSID
[out]typeWi-Fi security type
[out]bssid_bufbuffer to store BSSID if it was fixed
[in]bssid_buf_lenlength of bssid_buf
[out]password_bufbuffer to store password
[in]password_buf_lenlength of password_buf
[out]password_lenlength of password
[out]flagsflags
[out]channelchannel
[out]timeouttimeout
Returns
0 Success.
-ENOENT No network with this SSID was found.
-EINVAL A required buffer was NULL or invalid SSID length.
-EPROTO The network with this SSID is not a personal network.