bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

ESP32 PANU in Arduino IDE #494

Closed DansDesigns closed 1 year ago

DansDesigns commented 1 year ago

Hello, First i must say that i am amazed at the work that has been put into this, Kudos!

I would like to ask if it is possible to use the panu_demo.c example within the Arduino IDE for the ESP32? If so, how would one go about incorporating this as a library?

Thank you for your help!

mringwal commented 1 year ago

Hi Dan, thanks for your kind words. The panu_demo only works on Linux and maybe on macOS as it assumes that a native TCP/IP stack exists and that it's possible to implement a virtual network card. Our pan_lwip_http_server.c, which also includes a DHCP Server, would be a better example.

So far, I've only used BTstack with the ESP-IDF framework and haven't tried the Arduino IDE. You can follow the readme in the port/esp32 folder of BTstack to run the pan_lwip_http_server.c directly.