After about 5 seconds the debugs logs show the following:
Exception thrown: 'System.Net.Sockets.SocketException' in System.Net.Sockets.dll
Now the subscription callback is no longer called when (dis)connecting a device. It seems there is some sort of timeout which is affecting the subscription.
Listen to connection events using the following code:
After about 5 seconds the debugs logs show the following:
Now the subscription callback is no longer called when (dis)connecting a device. It seems there is some sort of timeout which is affecting the subscription.