'Waiting for bluetooth notifications
I'm implementing android bluetooth in Flutter and I have some performance issues. I'm doing a few writings to bluetooth characteristics in a row to upload device configuration. Unfortunately, I need to wait some time before each command, to be certain that all of them will be received by the device. I came up with simple solution to use Thread.sleep to wait around 200 ms between each write. However it's bit bothering as it also freezes Flutter platform. Does anyone have better solution that would avoid making UI not responding? Thanks for all the help :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
