B4R Question rEsp32bluetoot - example memory issue

viriato

Member
Licensed User
Longtime User
Hi,
I am Using the rEsp32bluetoot example https://www.b4x.com/android/forum/threads/resp32bluetooth-esp32-classic-bluetooth.93257/#content
and I have a memory size issue.
Trying to optimize a realized the following function use about 30% of the available memory

bt.Initialize("ESP32_BT", "bt_StateChanged")
..........................
Sketch uses 948464 bytes (72%) of program storage space. Maximum is 1310720 bytes.
Global variables use 39012 bytes (11%) of dynamic memory, leaving 288668 bytes for local variables. Maximum is 327680 bytes.

........................
' bt.Initialize("ESP32_BT", "bt_StateChanged") ' Line disable

Sketch uses 423568 bytes (32%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22180 bytes (6%) of dynamic memory, leaving 305500 bytes for local variables. Maximum is 327680 bytes.


Any idea why it takes so big memory ? how i optimize it ?

Thank you for the help
 
Top