I am trying to communicate with another device over Bluetooth.
But everytime I receive a packet on the Puck.js it uses memory and don't release it.
So after a few packets, the memory becomes less an I get an error Message --> MEMORY_BUSY.
On the Screenshot you can see how the memory decreases. (it starts a 1800 free blocks)
After I got the MEMORY_BUSY message it no longer receive every packet, so I miss most of the packets.
I think there must be a Memory Leak in the "characteristicvaluechanged" function
Do someone have simular problems and have found a solution for this problem ?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I am trying to communicate with another device over Bluetooth.
But everytime I receive a packet on the Puck.js it uses memory and don't release it.
So after a few packets, the memory becomes less an I get an error Message --> MEMORY_BUSY.
On the Screenshot you can see how the memory decreases. (it starts a 1800 free blocks)
After I got the MEMORY_BUSY message it no longer receive every packet, so I miss most of the packets.
I think there must be a Memory Leak in the "characteristicvaluechanged" function
Do someone have simular problems and have found a solution for this problem ?
1 Attachment