Instance Method


Returns a list of the peripherals connected to the system whose services match a given set of criteria.


- (NSArray<CBPeripheral *> *)retrieveConnectedPeripheralsWithServices:(NSArray<CBUUID *> *)serviceUUIDs;



A list of service UUIDs, represented by CBUUID objects.

Return Value

A list of the peripherals that are currently connected to the system and that contain any of the services specified in the serviceUUID parameter.


The list of connected peripherals can include those that other apps have connected. You need to connect these peripherals locally using the connectPeripheral:options: method before using them.

See Also

Retrieving Lists of Peripherals

- retrievePeripheralsWithIdentifiers:

Returns a list of known peripherals by their identifiers.