digeratilove
digeratilove

Reputation: 1

how can i use "ios bluetooth classic with swift"

i have been searching and studying for long time to find out "ios bluetooth classic" sample code.

but i can't find it. just i found bluetooth low energy sample code.

but i need bluetooth classic swift at ios sample code

i think apple doesn't want us to use bluetooth classic

i found sample code.

https://developer.apple.com/documentation/corebluetooth/using_core_bluetooth_classic

but i can't use this sample code .....

my plan is esp32 and iphone comunicate with each other by bluetooth classic, not by Bluetooth Low energy.

so , it is very difficult problem.

please help me

search and search...

Upvotes: 0

Views: 461

Answers (2)

CrepeGoat
CrepeGoat

Reputation: 2515

it sounds like Core Bluetooth was originally designed to abstract over BLE, but was later improved to also support Bluetooth Classic from the same Core Bluetooth API:

https://developer.apple.com/videos/play/wwdc2019/901/?time=618

So let's go and look into the details of Core Bluetooth for BR/EDR. This now will allow transparent use of GATT with the BR/EDR devices.

It's still running the exact same Bluetooth SIG protocol. There's no changes to that, and so you can look at this specification online on the Bluetooth SIG website.

("Bluetooth BR/EDR" = Bluetooth Classic, btw)

-> I think you can just use Core Bluetooth

Upvotes: 0

Risto
Risto

Reputation: 1648

If you are a company or organisation looking to develop a classic Bluetooth accessory for iOS, then you need to apply for the Apple MFi Programme. This will give you access to the necessary technical specifications, hardware components and certification tools.

If you're an individual, Apple recommends that you use a third-party hobbyist solution to connect iOS devices to serial devices, but I haven't personally seen any.

Upvotes: 0

Related Questions