hbldh / bleak

A cross platform Bluetooth Low Energy Client for Python using asyncio
MIT License
1.61k stars 279 forks source link

bleak data reading rate through notification with one uuid (57 samples per second ) and with 2 uuid subscribe (72 samples per second which is 36 sample of each uuid) #1592

Closed siki411 closed 3 weeks ago

siki411 commented 3 weeks ago

Description

so i am new to python and bleak so i have implemented notification reading with simplest possible way where i am just scanning the device and then start notify function with call back in order to read data but the problem is that i am not been able to read data fastly through notification.. with single uuid notification i am able to read 57 samples per second and if i go with 2 uuid notification and if i subscribe two notification then i been able to read 72 samples per second which means almost 36 samples i am getting from each uuid (32*2=72) but i have to read almost 100 samples per second now i dont know whether its bleak issue or hardware but with the same hardware but with uart i was able to read 100 samples per second. i would be really appreciate if you can guide me or recommand something thanks