July 2017
Beginner to intermediate
390 pages
10h 53m
English
It is physically impossible to start two devices at the same time. There is always a delay between them, which means that one device will be broadcasting sooner than the other. So, one device will get the BluetoothWatcher_Connected event before the other one.
If that happens, you should disable both the publisher and the watcher, otherwise they will connecting again and again.
We can get to the data in the args parameter and read out the IP address of the sender. Once we have that, we can set up a connection like we did before. However, this time we know where the device is to be found and that it is probably alive.
Let us have a look at that.
Read now
Unlock full access