Open elhampour opened 7 years ago
what function do you use to search devices ?
EDIT : android 7.1, no problem with startScan
evothings.ble.startScan(onDeviceFound, onScanError, options)
i did test this a lot. but it only works the first time. android 5.1.1
When using it 'stock', just console.log result It call onDeviceFound like every ... 100ms or something, if there is a peripheral in sight, you get the same ph. in loop, endlessly.
the problem that i have , is it only works when my bl is off ,and the app automatically turns it on. after the first time i done get the any peripheral endlessly,
Did you call 'stopScan' before 'startScan' again ?
I have an application. in my app i scan for ble devices. but it only works in just one way, when my phone Bluetooth is off and i scan for ble , the plugin asks user to turn on Bluetooth , and then i finds the ble. but next time it does not work.
i mean it only finds the ble when the plugin asks user to turn on Bluetooth .
does any one know the problem ?