Skip to content

retrievePeripherals gives signal SIGABRT #1

@forceoflight

Description

@forceoflight

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions