-
During our move to 3.x we chnaged how we connect to BT devices and now we always scan for a Device first. This is how I had implemented the Scan
Note that I checked the count of the results and only inspect it if it was 1. There is a new model of device that is causing multiple entries to be returned in the scan or for the same device and the numbers vary all within the same scanning "task". Ranging from 30 to 20, then 10. 7, 2 0 and back up to 2 or 6 then finally after 50 or more seconds it would be just 1. I have now changed my code and it inspects any set of results greater than 0 and looks for one instance of the unique device and connects to it. Why does the same device get reported back multiple times in a single result and then with varying counts in subsequent result sets? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So scan results will contain unique instances of the peripheral, but will get broadcast for every time that peripheral emits a signal. The scan result will contain an updated RSSI and possibly any updated advertising data. |
Beta Was this translation helpful? Give feedback.
So scan results will contain unique instances of the peripheral, but will get broadcast for every time that peripheral emits a signal. The scan result will contain an updated RSSI and possibly any updated advertising data.