mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-17 11:54:24 +08:00
Merge branch 'feature/add_callback_function_when_rx_probe_request' into 'master'
feat(lib): add callback function when rx probe request See merge request sdk/ESP8266_RTOS_SDK!673
This commit is contained in:
@ -40,6 +40,29 @@ wifi_rx_pbuf_mem_type_t esp_wifi_get_rx_pbuf_mem_type(void);
|
|||||||
|
|
||||||
int8_t esp_wifi_get_ap_rssi(void);
|
int8_t esp_wifi_get_ap_rssi(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The RX callback function when receive probe request packet.
|
||||||
|
* When probe request packet is received, the callback function will be called.
|
||||||
|
*
|
||||||
|
* @param frame Data of received probe request.
|
||||||
|
* @param len length of received probe request.
|
||||||
|
* @param rssi rssi of received probe request.
|
||||||
|
*/
|
||||||
|
typedef void (*wifi_sta_rx_probe_req_t)(const uint8_t *frame, int len, int rssi);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Register the RX callback function when receive probe request.
|
||||||
|
*
|
||||||
|
* When probe request packet is received, the registered callback function will be called.
|
||||||
|
*
|
||||||
|
* @param cb callback
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* - ESP_OK: succeed
|
||||||
|
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
|
||||||
|
*/
|
||||||
|
esp_err_t esp_wifi_set_sta_rx_probe_req(wifi_sta_rx_probe_req_t cb);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
gwen:
|
gwen:
|
||||||
core: 254208c
|
core: 254208c
|
||||||
net80211: 254208c
|
net80211: 8ec2d94
|
||||||
pp: cd2eae1
|
pp: 8ec2d94
|
||||||
wpa: 4e2372f
|
wpa: 4e2372f
|
||||||
espnow: 4e2372f
|
espnow: 4e2372f
|
||||||
wps: 4e2372f
|
wps: 4e2372f
|
||||||
|
Binary file not shown.
BIN
components/esp8266/lib/libpp.a
Executable file → Normal file
BIN
components/esp8266/lib/libpp.a
Executable file → Normal file
Binary file not shown.
Reference in New Issue
Block a user