Reputation: 221
What's the difference between MATCH_MODE_STICKY and MATCH_MODE_AGGRESSIVE in CN1 library for BLE? This is the matchMode argument in in the startScan method.
startScan(ActionListener callback, ArrayList services, boolean allowDuplicates, int scanMode, int matchMode, int matchNum, int callbackType)
I can't find any documentation that explains what's the difference.
Upvotes: 1
Views: 828
Reputation: 2505
Refer to the Android's Bluetooth LE documentation:
MATCH_MODE_STICKY: For sticky mode, higher threshold of signal strength and sightings is required before reporting by hw
MATCH_MODE_AGGRESSIVE: In Aggressive mode, hw will determine a match sooner even with feeble signal strength and few number of sightings/match in a duration.
Upvotes: 4