espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.81k stars 7.32k forks source link

6LoWPAN (IDFGH-9777) #11111

Open renzenicolai opened 1 year ago

renzenicolai commented 1 year ago

Is your feature request related to a problem?

ESP32-C6 has an 802.15.4 radio. I'd like to be able to use the 6LoWPAN features of LWIP in combination with this radio. The source files for 6lowpan support are in the LWIP src folder but are not included in the CMakeLists file for the LWIP component.

Describe the solution you'd like.

Please add the following source files to the srcs list of the LWIP component:

Describe alternatives you've considered.

No response

Additional context.

Maybe put adding these files behind a menuconfig option?

I'd like to use these APIs directly, to be able to use the radio for other types of packets too. My application is currently using the ieee802154 component directly and I'd like to keep doing that, while passing the 6LoWPAN packets to LWIP from my application.

david-cermak commented 1 year ago

We will not support this feature in the near future.

Which doesn't prevent you from using it. lwIP does support it, you can simply add sources to IDF build in your project makefile:

idf_component_get_property(lwip lwip COMPONENT_LIB)
set_property(TARGET ${lwip} PROPERTY SOURCES lwip/src/netif/lowpan6.c APPEND)
...
...

Linking https://github.com/espressif/esp-idf/pull/7436