Size of a sketch
Posted: Fri Oct 26, 2018 9:27 am
Hello
I'm playing with the Wifi and BLE connexions of the ESP32. I use the BLE libraries from Neil Kolban.
I built a sketch that receives data from an Android app I developed using App Inventor and it works. I wanted to add the possibility to connect on my Wifi network to get the current time, using a sketch which works also on its own.
When joining both sketches, the IDE says that the size is 123% of the available memory, although there are less than or around 50 code lines at all. I had to change the memory option of the Arduino IDE to no OTA to be able to upload it.
Do you know why I had this problem? Is it coming from the libraries used which are too heavy? Can anyone suggest other libraries for BLE and Wifi that are lighter?
The other problem I ran into (but I knew it would be such) is that when I want to connect to the Wifi, it forces the BLE to disconnect. Is there a way to disconnect BLE before connecting to the Wifi and auto-reconnect the BLE after disconnecting from the Wifi, without any action on the Android app side?
I'm playing with the Wifi and BLE connexions of the ESP32. I use the BLE libraries from Neil Kolban.
I built a sketch that receives data from an Android app I developed using App Inventor and it works. I wanted to add the possibility to connect on my Wifi network to get the current time, using a sketch which works also on its own.
When joining both sketches, the IDE says that the size is 123% of the available memory, although there are less than or around 50 code lines at all. I had to change the memory option of the Arduino IDE to no OTA to be able to upload it.
Do you know why I had this problem? Is it coming from the libraries used which are too heavy? Can anyone suggest other libraries for BLE and Wifi that are lighter?
The other problem I ran into (but I knew it would be such) is that when I want to connect to the Wifi, it forces the BLE to disconnect. Is there a way to disconnect BLE before connecting to the Wifi and auto-reconnect the BLE after disconnecting from the Wifi, without any action on the Android app side?