1
votes

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?

1
Bluetooth low energy doesn't support in iPhone 3gs. The BLE (Bluetooth Low Energy) is supported starts from model iPhone4s - Tendulkar

1 Answers

4
votes

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.