evothings / cordova-ble

Bluetooth Low Energy plugin for Cordova
http://www.evothings.com/
Apache License 2.0
242 stars 103 forks source link

startScan returns the same device over and over #66

Closed u84six closed 9 years ago

u84six commented 9 years ago

Is this the way it works? In the comments it says that it calls the callback when a new device is detected. When I run startScan, it keeps returning the same device until I call stopScan.

fredrikeldh commented 9 years ago

You are correct; the comment is misleading.

The scanCallback is called each time an advertisement is recieved. Most BLE devices send advertisements roughly once per second.

u84six commented 9 years ago

Thanks for the response!