Closed ChinaGuCheng closed 1 year ago
I read the code and it seems that the bound device and the broadcasted device are not related
How do multiple devices differentiate, the code seems to use the first received broadcast
There is currently no way to support multiple devices working at the same time for the following reasons:
I read the code and it seems that the bound device and the broadcasted device are not related
You are right, see the second reason above. winrt
does not provide such APIs.
The solution now is that we start processing the received BLE advertisements when the bound device is enabled and we ignore all BLE advertisements when the bound device is disabled. And then we track changes in battery and RSSI values to determine if it is likely to be the user's device and not someone else's device around (code). This solution is not absolutely reliable, but it works in most cases.
How do multiple devices differentiate, the code seems to use the first received broadcast