I am trying to create a device that passes on RAW ethernet frames - so I wasnt to use the RADIO but not have an IP stack. I want to create an TCPIP_ADAPTER that just gets ethernet frames and and passes them over to WIFI for transmission and vice versa. I just want to use the ESP32 as a MAC/PHY
I am looking to do
* Associate with AP
* Get Ethernet Frame via GPIO on ESP32
* Reformat frame to 802.11 and Send over Wifi
receiving in the opposite... remove Wifi fields and re-format frame for Wired ethernet and send over GPIO to another device.
If I disable LWIP, then compilation fails as there are lots of dependencies on IP in event_default_handler.c and other places.
Is there a cleaner way or removing lwIP ? or just hack out the pieces..
One of the errors
Code: Select all
/home/richard/esp/esp-idf/components/esp32/event_default_handlers.c:298:9: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD(TAG, "SYSTEM_EVENT_STA_GOT_IP, ip:" IPSTR ", mask:" IPSTR ", gw:" IPSTR,