user2533604
user2533604

Reputation: 665

Using CoreBluetooth/CBCentralManager.h framework

I am using CoreBluetooth framework for first time in my Objective-c code.

My iPhone version is iPhone-3GS.

When I run my code, I get output as "The platform or hardware does not support Bluetooth low energy".

I saw 3GS specifications and got to know that it supports v2.1 with A2DP. But what I expected is whether Bluetooth is powered ON or powered OFF.

How can I get Bluetooth status through objective-c code using CoreBluetooth framework?

How to get Bluetooth status through Objective-c ?

Can anyone share a link or tutorial on this?

Upvotes: 1

Views: 485

Answers (1)

Christoph
Christoph

Reputation: 1525

CoreBluetooth is the API meant for Bluetooth LE in iOS5+. It does not support "normal" Bluetooth or any "normal" Bluetooth profiles. As far as I remember, the first iOS device supporting Bluetooth LE was the iPhone 4S - your 3GS just does not have the correct hardware. Bluetooth LE is part of Bluetooth 4.0 and meant for reading sensors and alike... https://en.wikipedia.org/wiki/Bluetooth_low_energy

You will definitely not make it work using your 3GS, sorry.

Upvotes: 4

Related Questions