Skip to content

How can I handle InvalidOperationException thrown internally in response to connecting to existing peripheral after toggling Bluetooth off/on? #1494

Closed Answered by vchelaru
vchelaru asked this question in Q&A
Discussion options

You must be logged in to vote

For future readers:

Peripheral.NotifyCharacteristic(WriteServiceUuid, NotificationCharacteristicUuid)
   .Subscribe(HandleNotificationSubscription, HandleException);

// ...
private void HandleException(Exception exception)
{
    // do we care to do anything here? I think we just tolerate it...
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vchelaru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants