[SOLVED] WiFi + WebServer + Bluetooth
Posted: Fri Jan 19, 2018 10:43 am
by s.allasia
Hi,
I make a project with STA+AP WiFi, HTTP and HTTPS web server.
Everything works fine.
if I configure and enable Bluetooth (BLE gatt_server), Bluetooth works fine but HTTP/HTTPS web server don't works anymore.
I tried with ESP-IDF v2.1 and with ESP-IDF v3.0-rc1 but the result was the same.
Do you have any idea?
Thanks!
Re: WiFi + WebServer + Bluetooth
Posted: Fri Jan 19, 2018 7:37 pm
by chegewara
There is no issue in this app
https://github.com/nkolban/ESP32_Explorer
It is running http server + STA + eventually BLE which can be triggered from web site (observer, server or both observer and server).
Re: WiFi + WebServer + Bluetooth
Posted: Fri Jan 19, 2018 8:04 pm
by cmorgan
chegewara wrote:There is no issue in this app
https://github.com/nkolban/ESP32_Explorer
It is running http server + STA + eventually BLE which can be triggered from web site (observer, server or both observer and server).
Hi chegewara, what web server is used for this project? I reviewed the code but couldn't spot it.
Re: WiFi + WebServer + Bluetooth
Posted: Fri Jan 19, 2018 8:07 pm
by chegewara
Re: WiFi + WebServer + Bluetooth
Posted: Fri Jan 19, 2018 8:44 pm
by cmorgan
Ahh, so there is a bunch of stuff that isn't already found in nghttp2...
Re: WiFi + WebServer + Bluetooth
Posted: Thu Jan 25, 2018 10:24 am
by s.allasia
I solved.
My ESP32 have run out of free heap memory.
See below:
https://esp32.com/viewtopic.php?f=2&t=4329
Re: [SOLVED] WiFi + WebServer + Bluetooth
Posted: Thu Jan 25, 2018 5:26 pm
by chegewara
Seems you are having tough battle with heap shortage. Try to fiddle with options in menuconfig:
https://esp32.com/viewtopic.php?f=13&t= ... ase#p16243
Also remember that heap tracing is taking some heap, higher logging level is taking more heap.