CoreBluetoothPeripheral icon indicating copy to clipboard operation
CoreBluetoothPeripheral copied to clipboard

unable to connect

Open dnsBlah opened this issue 9 years ago • 3 comments

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.

dnsBlah avatar Feb 26 '16 06:02 dnsBlah

me too:(

sunuslee avatar Apr 07 '16 08:04 sunuslee

So I'm not the only one :) Can't find a proper example which does work.

dnsBlah avatar Apr 08 '16 13:04 dnsBlah

You need make some changes in OS X version : in LXCBAppDelegate replace self.central.serviceUUIDs = fitBitOneServiceUUIDs; to self.central.serviceUUIDs = coreBluetoothiOSPeripheralServiceUUIDs;

it helped me.

EugeneKiyv avatar May 26 '16 12:05 EugeneKiyv