-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I am trying to get sample code work with Polar H7 (Bluetooth Smart). HRM hangs on following line in iPad 3 with iOS 6 environment. Any glue why (CBPeripheral *)aPeripheral is nil?
// Retrieve already known devices
[self.manager retrievePeripherals:[NSArray arrayWithObject:(id)aPeripheral.UUID]];
Thread 1: signal SIGABRT
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
Printing description of aPeripheral:
<CBConcretePeripheral: 0x1c5428d0 UUID = (null), Name = "(null)", IsConnected = NO>
Printing description of advertisementData:
{
kCBAdvDataManufacturerData = <6b00031c 36>;
kCBAdvDataServiceUUIDs = (
"Unknown (<180d>)"
);
kCBAdvDataTxPowerLevel = 0;
}
Printing description of RSSI:
-54