I'm trying to determine the connected devices via Bluetooth in iOS application using Core Bluetooth library and unable to get a list of the devices which are in connected state.
I've tried using "retrieveConnectedPeripheralsWithServices" function to get the connected devices but this requires a specific service to search for. I'd like to get a list of all connected Bluetooth devices, not just specific-service Bluetooth devices. In order to get all the services, I therefore pass an empty array of services to this function, however, the function does return an empty list.
Is it possible to get a list of Bluetooth devices connected on iOS using Core Bluetooth? if not, please suggest an alternate option to achieve this in iOS.
Thank you for your time and assistance.