Replies: 1 comment
-
var task = this.peripheral.WhenDisconnected().Timeout(TimeSpan.FromSeconds(5)).Take(1).ToTask();
this.peripheral.CancelConnection();
await task.ConfigureAwait(false);
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
munkii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pardon the vague title.
As part of the work to move from 2.7.3 to 3.x I am changing some of the structure around how we interact with Shiny.BluetoothLE. I have come across a couple of oddities that I have previously ignored.
Taking this as an example
"HACK Delay added because android bluetooth needs time between calls" this seems odd. Is it really necessary? This app has been using Shiny since the beginning so maybe it was needed long ago.
Can you see what the point might be in the call WhenDisconnected().Timeout(TimeSpan.FromSeconds(1)).Take(1);? Seems pointless to me
Thanks
Beta Was this translation helpful? Give feedback.
All reactions