Open SudhindraMewundi opened 6 years ago
I am experiencing the same problem, reports back through Python as OS unable to allocate memory after long term testing cycles.
Seeing the same, but also possibly for getCharacteristics()
. Big issue when you want to scan keep your program running forever. Any updates?
Hi Ian,
I am trying to connect to a BLE sensor device from RaspberryPi and get information by reading the characteristics on it. All works fine with the below skeleton code except that I see a small memory leak when used over a period of time. Below is the code that I use to connect and read from the characteristic. I am able to get the data. On my RaspberryPi I see that the memory increases by 0.1% for every 220+ counts of the while loop.
When checked for memory leak it was seen that only the lbleServlist = lPerHandle.getServices() function was causing the leak and I am deleting the list below as del lbleServlist[:] since I am using pythin2.7
Please suggest what might be the cause for the leak using the getServices() call on python 2.7.
Thanks Sudhindra
def fble_connect(lMACaddr,lType,lThreadNum): global mutex