Integrate BootWiFi snippet in IDF C project
Posted: Tue May 22, 2018 12:25 am
Hey there. I have programmed my ESP32 for networking, sensing, among other functions. Everything is working but connection to WiFi network is HARD-CODED. That's when I found @kolban 's BootWiFi snippet and successfully ported in a new project. It's been really hard for me because I don't know annything about c++ coding, so I started adding C source files to the new project and adding functions to their headers for compatibility with c++. Most functions work as expected and the program is compiled and sent to the device, but ble_gap_api callback functions cause panic halt cpu and the device crashes.
Tried the inverse by putting the bootWifi source file and header in the C program (following forums for porting c++ sources and classes to c) but I don't know how to call these.
BootWiFi* boot;
(in main)
boot = new BootWiFi();
boot->boot();
All help is appreciated.
thanks
Tried the inverse by putting the bootWifi source file and header in the C program (following forums for porting c++ sources and classes to c) but I don't know how to call these.
BootWiFi* boot;
(in main)
boot = new BootWiFi();
boot->boot();
All help is appreciated.
thanks