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:
Wu Jian Gang
2018-12-25 19:57:02 +08:00
4 changed files with 25 additions and 2 deletions

View File

@ -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);
/**
* @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
}
#endif

View File

@ -1,7 +1,7 @@
gwen:
core: 254208c
net80211: 254208c
pp: cd2eae1
net80211: 8ec2d94
pp: 8ec2d94
wpa: 4e2372f
espnow: 4e2372f
wps: 4e2372f

Binary file not shown.

BIN
components/esp8266/lib/libpp.a Executable file → Normal file

Binary file not shown.