Re: How can we retrieve a list of paired/connected Bluetooth 2 (or "classic") devices?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bluekitchen-gmbh.com; s=default; h=References:To:Cc:In-Reply-To:Date: Subject:Mime-Version:Content-Type:Message-Id:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JWP+A6NQxxzBLw6EVt9XPuV6VuT6qCwb89de7VeQvPk=; b=j4wuQTjeOFk4dG4MlWPt84Ox/ RLxhKh42qg01BLbD1Eh7eBqqjUhsuJRinJei78YB0ErzEPOsCqvwxKU6u4OVwVxWLu9z+SbBoWQ7P X1zMDAVId/Zojofj1oiTOv0AAwWhlx9ViphagGoytLYiXHLPy92YoUBEGGauJpJqXBByGVA8LbvHY ylrvtqTRC20+jogVVT9HXBr7b3TK6wPMpIdqigIzwfYAyFMJgXvqE8hO+IcSLFVyameQlVAx0+hiw aPcp3w8PQCfPP2Kut5iXX4NteLKpF7nJqe0GdYAypy0/qIiHRWkPod8OgI6NPb+vk5/7ViwUfwA8Z 6qoSFC/Jw==; Hi Nick There's no public API to get the list of connected or paired devices. In theory, you could just call -[BluetoothManager pairedDevices] (https://github.com/nst/iOS-Runtime-Headers/blob/master/PrivateFrameworks/Blu... <https://github.com/nst/iOS-Runtime-Headers/blob/master/PrivateFrameworks/BluetoothManager.framework/BluetoothManager.h>) of the private BluetoothManager framework. However, it would only work if you sign your app with some com.apple.BTServer.* entitlements (see Preferences.app for comparison), which you can only do when you deploy to a device with a Jailbreak. Also, no app in the App Store should have these Entitlements, so no app should be able to get this list on a recent iOS version. Why do you need to get this list? Cheers Matthias
On 14 Sep 2017, at 17:10, Nick Gilbert <nick@x-rm.com> wrote:
Hi all,
How can we retrieve a list of Bluetooth 2 / 2.1 "classic" devices which the phone is currently paired with and/or connected to? I have seen app-store apps do this, but I can't find any API or code samples which show bluetooth 2 devices. Typically, this includes things like many makes and model of car, and older headsets and speakers.
Apps like Light Blue can only see BT 4 and BLE devices and doesn't show any of the cars I've tested with even when they are paired and connected.
Does scanning for connected/paired bluetooth devices require a different API? I'm quite stuck with this problem - possibly as it's rare to need to scan for such old devices.
Thanks, Nick
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/matthias%40bluekitchen...
This email sent to matthias@bluekitchen-gmbh.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Matthias Ringwald