user2106108
user2106108

Reputation: 163

Android Ble Scanning callback not getting triggered continuously

Requirement : I have a requirement where I have to scan for near by ble devices at continuous basis.If an attribute of ble device changes,the device emits the ble signal which my app captures.But these things should be done at continuous mode.

Problem : In some of the android device (such as one plus 1,samsung tab 3,Moto droid turbo) the scancall back wil get triggered only once and is not scanning at continuous basis as per my requirement.I have tested some of other devices (such as one plus 3,samsung tab 4,moto g2)where in the scan callback gets triggered every single time.Is there any solution where in even other devices to get scan callback everytime...I have checked with all the scan modes,but yet the same problem persists...

Upvotes: 2

Views: 1164

Answers (1)

Tomer Petel
Tomer Petel

Reputation: 344

Unfortunately some of the Android devices do not return Scan results continuously as this is not mandatory according to BLE protocol (I witnessed it on LG devices). The workaround is to initiate Start and stop scan. See This useful thread

Upvotes: 1

Related Questions