CoreBluetoothPeripheral
CoreBluetoothPeripheral copied to clipboard
unable to connect
Hi I'm always unable to connect to the bluetooth peripheral..
2016-02-26 07:29:29.288 CoreBluetoothOSXCentral[79244:1802752] Scanning ... 2016-02-26 07:29:29.288 CoreBluetoothOSXCentral[79244:1802752] No connected services for peripheralat all. Unable to subscribe 2016-02-26 07:29:29.379 CoreBluetoothOSXCentral[79244:1802752] didDiscoverPeripheral: Peripheral CFUUID: <CFUUID 0x600000028080> EB5883E4-2C69-4E31-A5BD-B36D74584C0E 2016-02-26 07:29:29.380 CoreBluetoothOSXCentral[79244:1802752] didDiscoverPeripheral: Peripheral CBUUID: Unknown (<eb5883e4 2c694e31 a5bdb36d 74584c0e>) 2016-02-26 07:29:29.380 CoreBluetoothOSXCentral[79244:1802752] didDiscoverPeripheral: Name: Test 2016-02-26 07:29:29.380 CoreBluetoothOSXCentral[79244:1802752] didDiscoverPeripheral: Advertisment Data: { kCBAdvDataIsConnectable = 1; kCBAdvDataLocalName = Test; kCBAdvDataServiceUUIDs = ( "Unknown (<7e57>)" ); } 2016-02-26 07:29:29.380 CoreBluetoothOSXCentral[79244:1802752] didDiscoverPeripheral: RSSI: -52 2016-02-26 07:29:29.381 CoreBluetoothOSXCentral[79244:1802752] Connecting ... Unknown (<eb5883e4 2c694e31 a5bdb36d 74584c0e>) 2016-02-26 07:29:39.382 CoreBluetoothOSXCentral[79244:1802752] connectionDidTimeout: <CFUUID 0x600000028080> EB5883E4-2C69-4E31-A5BD-B36D74584C0E 2016-02-26 07:29:39.383 CoreBluetoothOSXCentral[79244:1802752] Error: Error Domain=net.liquidx.LXCBCentralClient Code=-1 "Unable to connect to BTLE device." UserInfo={NSLocalizedDescription=Unable to connect to BTLE device.}
I'm using a macbook pro retina late 2015 model.
me too:(
So I'm not the only one :) Can't find a proper example which does work.
You need make some changes in OS X version : in LXCBAppDelegate replace self.central.serviceUUIDs = fitBitOneServiceUUIDs; to self.central.serviceUUIDs = coreBluetoothiOSPeripheralServiceUUIDs;
it helped me.