Hello
I am currently evaluating the Bluetooth library and it looks very promising.
I am using it for coding a BLE Client which uses the beacon watcher to wait for a specific custom UUID, then I attempt to connect to that address and read our custom service/characteristics/data.
What I am not sure about is how should I _continuously read data_ after finding my characteristic.
I am looping now inside a Task and I am not 100% sure this is the right approach (sometimes the client.Disconnect or manager.Close hang indefinitely and I am afraid of a deadlock).
What I have now:
* discovering the UUID via beacon watcher
* in ClientConnected event, I enumerate the services, then I find the characteristic (everything happens in the main thread) and the I spawn a task where I read characteristic value until no value comes back (which means our peripheral stopped streaming data).
Is calling the ReadCharacteristicValue on a different thread a potential issue?
Should I refactor my code and perform all operations inside a wclThread (hoping that if the client/manager hang I could kill the thread and recreate it)?
Thanks a lot in advance for any suggestion!
Best regards,
Radu