[SOLVED] WiFi + WebServer + Bluetooth

s.allasia
Posts: 23
Joined: Tue Jan 09, 2018 3:12 pm

[SOLVED] WiFi + WebServer + Bluetooth

Postby s.allasia » Fri Jan 19, 2018 10:43 am

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!
Last edited by s.allasia on Thu Jan 25, 2018 10:25 am, edited 1 time in total.

chegewara
Posts: 2230
Joined: Wed Jun 14, 2017 9:00 pm

Re: WiFi + WebServer + Bluetooth

Postby chegewara » Fri Jan 19, 2018 7:37 pm

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).

cmorgan
Posts: 89
Joined: Thu Aug 24, 2017 12:52 am

Re: WiFi + WebServer + Bluetooth

Postby cmorgan » Fri Jan 19, 2018 8:04 pm

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.


cmorgan
Posts: 89
Joined: Thu Aug 24, 2017 12:52 am

Re: WiFi + WebServer + Bluetooth

Postby cmorgan » Fri Jan 19, 2018 8:44 pm

Ahh, so there is a bunch of stuff that isn't already found in nghttp2...

s.allasia
Posts: 23
Joined: Tue Jan 09, 2018 3:12 pm

Re: WiFi + WebServer + Bluetooth

Postby s.allasia » Thu Jan 25, 2018 10:24 am

I solved.
My ESP32 have run out of free heap memory.

See below:
https://esp32.com/viewtopic.php?f=2&t=4329

chegewara
Posts: 2230
Joined: Wed Jun 14, 2017 9:00 pm

Re: [SOLVED] WiFi + WebServer + Bluetooth

Postby chegewara » Thu Jan 25, 2018 5:26 pm

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.

Who is online

Users browsing this forum: No registered users and 119 guests