viriato Member Licensed User Longtime User Apr 6, 2019 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Apr 7, 2019 #2 Which memory problem have you encountered? 288k is quite a lot of memory. I don't see how you can reduce the required space. It gets added because of the linked native Bluetooth library. Upvote 0
Which memory problem have you encountered? 288k is quite a lot of memory. I don't see how you can reduce the required space. It gets added because of the linked native Bluetooth library.