J. Sinoti Junior
J. Sinoti Junior

Reputation: 43

iOS Bluetooth LE connection

I'm trying connect with a bluetooth hardware (ConnectBlue) using the Core Bluetooth. I can connect to the hardware and read the basic information like name and another infos, but I can't receive the updates that the hardware is sending. The manufacturer told me to create a serial connection, but I didn't find how do that. With this same hardware I could connect with Android by socket using the method

bluetoothDevice.createInsecureRfcommSocketToServiceRecord(UUID);

So I believe I'll need create this socket connection with the iOS to? Is that right? and how can I do that?

Thank you!

Upvotes: 1

Views: 2009

Answers (2)

Paulw11
Paulw11

Reputation: 114783

As the other answers have said, Apple does not permit serial stream connections to Bluetooth devices except as part of the MFI program and the external accessory framework. You will need to find out if your device publishes data using Bluetooth 4.0/Bluetooth Low Energy characteristics. The "LightBlue" app on the app store is a useful utility for discovering BLE devices, their services and published characteristics.

Upvotes: 2

Jissay
Jissay

Reputation: 552

According to this post, you are not allowed to read streaming data from your bluetooth device using low energy. Reading streaming data is only available using Classical bluetooth and to developers with a special license from Apple.

Upvotes: 0

Related Questions