ESP8266_RTOS_SDK
v1.4.0
|
ESP8266 WPS APIs. More...
Typedefs | |
typedef enum wps_type | WPS_TYPE_t |
typedef void(* | wps_st_cb_t) (int status) |
WPS callback. More... | |
Enumerations | |
enum | wps_type { WPS_TYPE_DISABLE = 0, WPS_TYPE_PBC, WPS_TYPE_PIN, WPS_TYPE_DISPLAY, WPS_TYPE_MAX } |
enum | wps_cb_status { WPS_CB_ST_SUCCESS = 0, WPS_CB_ST_FAILED, WPS_CB_ST_TIMEOUT, WPS_CB_ST_WEP, WPS_CB_ST_SCAN_ERR } |
Functions | |
bool | wifi_wps_enable (WPS_TYPE_t wps_type) |
Enable Wi-Fi WPS function. More... | |
bool | wifi_wps_disable (void) |
Disable Wi-Fi WPS function and release resource it taken. More... | |
bool | wifi_wps_start (void) |
WPS starts to work. More... | |
bool | wifi_set_wps_cb (wps_st_cb_t cb) |
Set WPS callback. More... | |
ESP8266 WPS APIs.
WPS can only be used when ESP8266 station is enabled.
typedef void(* wps_st_cb_t) (int status) |
WPS callback.
int | status : status of WPS, enum wps_cb_status.
|
enum wps_cb_status |
bool wifi_set_wps_cb | ( | wps_st_cb_t | cb | ) |
Set WPS callback.
wps_st_cb_t | cb : callback. |
bool wifi_wps_disable | ( | void | ) |
Disable Wi-Fi WPS function and release resource it taken.
null |
bool wifi_wps_enable | ( | WPS_TYPE_t | wps_type | ) |
Enable Wi-Fi WPS function.
WPS_TYPE_t | wps_type : WPS type, so far only WPS_TYPE_PBC is supported |
bool wifi_wps_start | ( | void | ) |
WPS starts to work.
null |