There are no problems on ios 6, I can reconnect paired Bluetooth devices.
I use
- (void)retrievePeripherals:(NSArray *)peripheralUUIDs
and delegate
- (void)centralManager:(CBCentralManager *)central didRetrievePeripherals:(NSArray *)peripherals
returns an array of peripherals. I iterate over this array and will successfully contact each periphery.
on ios 7,
- (void)retrievePeripherals:(NSArray *)peripheralUUIDs
outdated. Ok, I'm using the new method for ios 7:
- (NSArray *)retrievePeripheralsWithIdentifiers:(NSArray *)identifiers
This method returns an array of peripherals. I iterate over this array and try to connect each peripheral device, but it does not work.
Peripheral log returned by ios 7 method:
"<CBPeripheral: 0x176e5f50 identifier = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, Name = \"Name\", state = disconnected>"
If I call retrievePeripheralsWithIdentifiers again, the state of the periphery changes to:
"<CBPeripheral: 0x176e5f50 identifier = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, Name = \"Name\", state = connecting>"
But nothing happens
I tried using an obsolete method that works on ios6, but it is the same. No connection.