Hello,
I am wanting to send an receive non-IP data via wifi.
It seems that I can put just about any data on to wifi using a non-QoS data frame and esp_wifi_80211_tx().
That said, I am having trouble finding an equivalent rx function or call back to receive non-IP data frames. It seems like all the data received by the wifi driver gets pumped into esp_netif_receive?
Is there a way to filter out non-IP data frames either before they get passed to netif, or afterwards if netif is not able to process them?
Thank you.
Bill
Non-IP data over Wifi
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: Non-IP data over Wifi
You could take a look at esp_wifi_internal_reg_rxcb. Note that it's an internal function and as such not considered stable.
Re: Non-IP data over Wifi
Super! Thank you.
I continued digging after posting and came up with esp_wifi_register_if_rxcb. It looks like esp_wifi_register_if_rxcb is more or less a pass-through to esp_wifi_internal_reg_rxcb.
Given that esp_wifi_register_if_rxcb is not marked "internal" would it be considered stable?
Thank you,
Bill
I continued digging after posting and came up with esp_wifi_register_if_rxcb. It looks like esp_wifi_register_if_rxcb is more or less a pass-through to esp_wifi_internal_reg_rxcb.
Given that esp_wifi_register_if_rxcb is not marked "internal" would it be considered stable?
Thank you,
Bill
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: Non-IP data over Wifi
Ah, didn't realize we had a non-internal version of that call. Unless the header file that function is declared in says otherwise, that should be stable.
Who is online
Users browsing this forum: ESP_ondrej, Google [Bot] and 83 guests