i want to detect an altBeacon (transmitted by an Android Smartphone with the QuickBeacon App) with CoreBluetooth and Swift.
But when I search for a specific UUID the delegate method is not being called.
func centralManagerDidUpdateState(central: CBCentralManager!){
if (central.state == .PoweredOff) {
println("CoreBluetooth BLE hardware is powered off")
}
else if (central.state == .PoweredOn) {
var UUIDObj:NSArray! = [CBUUID(string: "2f234454-cf6d-4a0f-adf2-f4911ba9ffa6")]
self.centralManager.scanForPeripheralsWithServices(UUIDObj as [AnyObject], options: nil)
NSLog("Scanning started"); }}
Normally this method should be called
func centralManager(central: CBCentralManager!, didDiscoverPeripheral peripheral: CBPeripheral!, advertisementData: [NSObject : AnyObject]!, RSSI: NSNumber!) {
When i change the Beacon Format to "iBeacon" it also don't work. Does anybody know how i can get the advertising values of the AltBeacon and iBeacon standard with coreBluetooth?
Update:
When i search for all peripheral devices i get this information from my AltBeacon:
in DidDiscoverPeripheral AdvertisementData: [kCBAdvDataIsConnectable: 0] RSSI: -47 Peripheral Name: nil , State: (Enum Value) , Services:nil, RSSI:nil,ID: <__NSConcreteUUID 0x17002edc0> A91CBF8C-DA69-B2FB-1A9A-CDDB60A48209 , Description:
But the UUID does not match with the given ID :(