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

◆ wifi_credentials_set_personal()

int wifi_credentials_set_personal ( const char * ssid,
size_t ssid_len,
enum wifi_security_type type,
const uint8_t * bssid,
size_t bssid_len,
const char * password,
size_t password_len,
uint32_t flags,
uint8_t channel,
uint32_t timeout )

#include <include/net/wifi_credentials.h>

Set credentials for given SSID.

Parameters
[in]ssidSSID to look for
[in]ssid_lenlength of SSID
[in]typeWi-Fi security type
[in]bssidBSSID (may be NULL)
[in]bssid_lenlength of BSSID buffer (either 0 or WIFI_MAC_ADDR_LEN)
[in]passwordpassword
[in]password_lenlength of password
[in]flagsflags
[in]channelChannel
[in]timeoutTimeout
Returns
0 Success. Credentials are stored in persistent storage.
-EINVAL A required buffer was NULL or security type is not supported.
-ENOTSUP Security type is not supported.
-ENOBUFS All slots are already taken.