forked from espressif/esp-idf
1. Add api ssc cmd "ap -K -a aid" to kick out connected station.
The parameter aid followed -a is aid of the connected station. If aid is 0, kick out all of the connected stations. 2. Add block parameter to api esp_wifi_scan_start. If block is true, the api blocks before scan done or returns directly.
This commit is contained in:
@@ -48,6 +48,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
uint32_t status; /**< status of scanning APs*/
|
||||
uint8_t number;
|
||||
uint8_t scan_id;
|
||||
} system_event_sta_scan_done_t;
|
||||
|
||||
typedef struct {
|
||||
|
@@ -122,6 +122,10 @@ esp_err_t esp_wifi_connect(void);
|
||||
|
||||
esp_err_t esp_wifi_disconnect(void);
|
||||
|
||||
esp_err_t esp_wifi_clear_fast_connect(void);
|
||||
|
||||
esp_err_t esp_wifi_kick_station(uint16_t aid);
|
||||
|
||||
typedef struct {
|
||||
char *ssid; /**< SSID of AP */
|
||||
uint8_t *bssid; /**< MAC address of AP */
|
||||
@@ -129,7 +133,7 @@ typedef struct {
|
||||
bool show_hidden; /**< enable to scan AP whose SSID is hidden */
|
||||
} wifi_scan_config_t;
|
||||
|
||||
esp_err_t esp_wifi_scan_start(wifi_scan_config_t *conf);
|
||||
esp_err_t esp_wifi_scan_start(wifi_scan_config_t *conf, bool block);
|
||||
|
||||
esp_err_t esp_wifi_scan_stop(void);
|
||||
|
||||
@@ -230,6 +234,8 @@ esp_err_t esp_wifi_get_station_list(struct station_info **station);
|
||||
|
||||
esp_err_t esp_wifi_free_station_list(void);
|
||||
|
||||
esp_err_t esp_wifi_set_storage(uint8_t storage);
|
||||
|
||||
typedef esp_err_t (*wifi_rxcb_t)(void *buffer, uint16_t len, void* eb);
|
||||
|
||||
esp_err_t esp_wifi_reg_rxcb(wifi_interface_t ifx, wifi_rxcb_t fn);
|
||||
|
Reference in New Issue
Block a user