obnizのフォーラムは新しいシステムに移行しております。
新しいフォーラムはこちらになりますBluetooth Scanning not working for BLE 4.0 iBeacons
-
This is ported from Github issue.
Hi,
I'm trying to get the Bluetooth scanning working, but not having much luck.
I bought some of these
https://www.amazon.com/gp/product/B019G0VVZC/ref=od_aui_detailpages00?ie=UTF8&psc=1
But the obniz doesn't seem to find them when scanning.
My Pixel XL2 and Samsung Tablets can find them, but not the Obniz.
Any ideas?
-
Hi @9wick,
I can get the scan.onfind to work and return responses, but any with the target uuid FFF0 don't find anything.
My iBeacon returns
localName:"Beacon_01823"
iBeacon:Object
uuid:"00004980-968d-11e4-b4a9-0800200c9a66"
major:1
minor:1823
power:197
rssi:-44So what would I have to set the target uuid to too find this target.
OR, What do I update the UUID of the device to to get to to match the FFF0 uuid search.Sorry I'm not fully up to speed with bluetooth
Steve
-
Hi, @kabongsteve
Ok, obniz will find your iBeacon with this.
var target = { uuids: ["00004980-968d-11e4-b4a9-0800200c9a66"], }; var peripheral = await obniz.ble.scan.startOneWait(target); console.log(peripheral.iBeacon)