Patryk Ludwikowski
Patryk Ludwikowski
I don't quite understand why would you need to modify the library itself, since `asBroadcastStream` can be used directly on `input`. I imagine example case like you described: there is...
You can close connection by either: * closing `connection.output` stream (you might want also to `await connection.output.allSent;` to be sure all data was sent), or * using `connection.finish()` (best way...
> but the `connection.output.close()` didn't work That could be because of your modification (broadcasted streams are not likely to be closed that way afik).
Out of focus situation (while the app platform code is still running) should have no impact on the connection I think. Turning app background or pausing/stopping it - it does....
My current proposal: * packet system which manages buffering before handling single package, * data parsing by user (`fromBytes`/`toBytes` could be good for user data models), * there will be...
I had a moment to think about implementing this, and there is next version of my proposal. Changes: + use packet objects that implements some packet interface; then make all...
After another while, I see that such delegating serialization and deserialization seems to be unnecessarily boiler-plate for utility like that. If user wants to use it, there will be no...
Progress (works + most basic example): https://github.com/PsychoXIVI/flutter_bluetooth_serial/commit/bcefb62f7a7cb57ff8b642d371388434dbcdec77 In few days I will prepare better example. Also, I am still not sure about the name `BluetoothConnectionAsPackets` and way of using these...
Still waiting kek
I found this https://github.com/reZach/secure-electron-store