Comments (3)
Set a try catch on the connect/disconnect which you'll always want to do anyhow. If your rapidly connecting/disconnecting, await the disconnection event. I don't have a DisconnectAsync at the moment because this isn't a use-case that I have ever seen really used.
from shiny.
Ok thanks for the reply, I will try that with the disconnect event. I had previously built a DisconnectAsync that always queried the disconnected status in the while loop, but even then I had problems disconnecting and reconnecting. One use case would be to use multiple devices that you want to switch back and forth or should you then not disconnect the existing connection?
Ok anyway, thanks for the reply and the ticket can be closed, I will try to do it with the disconnect event.
Thanks for the answer
from shiny.
One use case would be to use multiple devices that you want to switch back and forth or should you then not disconnect the existing connection?
It depends on your business need. If you're rapidly connecting and disconnecting, why not just stay connected? All I can say for this issue is that you have to wait for the disconnect to complete before you can send another connection request
from shiny.
Related Issues (20)
- Cannot send local notification with a ScheduleDate set using 3.2.4 HOT 6
- [Feature Request]: Allow specifying user-agent header on NSURLSession Config HOT 1
- [Bug]: actionIdentifier not available in OnEntry delegate for Push Notifications HOT 1
- [Bug]: ServiceCollectionExtensions.AddBluetoothLE() throws "System.InvalidOperationException: This service descriptor is keyed. Your service provider may not support keyed services." HOT 2
- [Bug]: Shiny not working with Azure Notification Hub and FCM V1 HOT 3
- [Bug]: CharacteristicExtensions.GetAllCharacteristics returns only characteristics of the latest found service
- [Bug]: Setting up Shiny services for MAUI with .Net 8.0 support HOT 3
- [Bug]: await IBleManager.RequestAccessAsync() never returns a completed task the first time asking for permissions HOT 6
- [Bug]: Cannot use ScheduleDate and RepeatInterval at the same time HOT 1
- [Bug]: WriteCharacteristic is always timeout once "GATT is not connected" is thrown HOT 3
- [Bug]: HOT 1
- [Bug]: Shiny Push Notification - Delegate On Entry HOT 2
- [Bug]: PushManager never returns a value from the RequestAccess task. HOT 4
- [Feature Request]: Support Push notifications for iOS Simulator HOT 1
- [Bug]: BLE CharacteristicInfo Discovery HOT 6
- [Bug]: Notification doesn't appear when the app is running HOT 3
- [Bug]: System.ObjectDisposedException: ObjectDisposed_Generic ObjectDisposed_ObjectName_Name, Android.OS.PowerManager HOT 9
- [Bug]: Notification not clickable HOT 2
- [Bug]: The devices are not disconnected with 2 Bluetooth connections HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiny.