https://developer.apple.com/documentation/corebluetooth/cbcentralmanager/retrieveconnectedperipherals(withservices:)
retrieveConnectedPeripherals(withServices:) | Apple Developer Documentation
Returns a list of the peripherals connected to the system whose services match a given set of criteria.
apple developerdocumentation