Callback function, for control type packages (ie. probe request)

Nanni.IT
Posts: 1
Joined: Sat May 12, 2018 8:25 am

Callback function, for control type packages (ie. probe request)

Postby Nanni.IT » Sat May 12, 2018 8:39 am

Hello everyone, as I would need your help.
(esp32 configured in WIFI_MODE_STA mode)
Using this function: "esp_err_t esp_wifi_set_promiscuous_rx_cb (wifi_promiscuous_cb_tcb)" it is possible to process the packages (wifi) received at the application level.
However it only works in promiscuous mode.
The problem is that if I activate the promiscuous mode I go down the connection with the AP, the message is this:
"I (67231) wifi: bcn_timout, ap_probe_send_start
I (69731) wifi: ap_probe_send over, resett wifi status to disassoc
I (69731) wifi: state: run -> init (1)
I (69731) wifi: pm stop, total sleep time: 52969261 us / 69339047 us
I (69731) wifi: n: 1 0, o: 1 0, ap: 255 255, stands: 1 0, prof: 1 "
I think the problem is that the card does not respond to the beacon -> beacon_timeout.
I actually do not need the promiscuous mode to get the packages of interest, but I do not find an application layer function that allows me to view (via event, callback, etc ..) the proberequest package received.
Could you tell me if it exists?
And if it does not exist how can I implement it? (Perhaps indicating which are the key functions of the lowest level)
Thank you all

Who is online

Users browsing this forum: MicroController and 95 guests