Page 1 of 1

Non-IP data over Wifi

Posted: Wed Dec 02, 2020 4:26 pm
by Coopdis
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

Re: Non-IP data over Wifi

Posted: Thu Dec 03, 2020 1:41 am
by ESP_Sprite
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

Posted: Thu Dec 03, 2020 3:31 pm
by Coopdis
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

Re: Non-IP data over Wifi

Posted: Sat Dec 05, 2020 3:01 am
by ESP_Sprite
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.

Re: Non-IP data over Wifi

Posted: Tue Dec 08, 2020 10:08 pm
by Coopdis
Thank you Sprite!