How to get the list of the paired devices through Bluetooth in iOS?
Asked Answered
A

1

4

It's for AppStore, so I don't want any private framework.

I want to get the list of the paired(even not connected).

There are Core Bluetooth and External Accessary frameworks in iOS. I tried both of these, but nothing listed.

Absorbing answered 10/6, 2013 at 9:59 Comment(0)
E
-1

Tyr to use this one but i'm not sure its working or not for offline devices.

Create EAAccessory object and initialize it. And then call the property name on your accessory object

NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager] 
                        connectedAccessories]; 
EAAccessory *accessory = nil; 

for (EAAccessory *obj in accessories)
{ 
    NSLog(@"Found accessory named: %@", obj.name);
}
Ectosarc answered 10/6, 2013 at 10:6 Comment(4)
It doesn't work for Offline devices. It show only the one connected in "classical" Bluetooth. I'm not sure you can't get the ones which aren't currently connected.Isidroisinglass
Thanks for your answer and comments. So, is it impossible to get all the devices in the Bluetooth section of Settings?Absorbing
i don't know dear. I explained my self as i know.Ectosarc
@JinX. Did you find anything?Garrity

© 2022 - 2024 — McMap. All rights reserved.