Belzum Nulls
Belzum Nulls

Reputation: 41

Working with bluetooth in Objective-C

I was trying to make a connection between two devices initially using bluetooth ( To send messages and files ) , the first framework I found to do this kind of thing was the GameKit but unfortunately it was discontinued and I was forced to use the MultipeerConnectivity framework.

Recently I learned of the Core-Bluetooth framework that can communicate with other peripherals , performing an internet search I realized that most of the tutorials related to it, are temperature peripherals and heart monitor. Unfortunately I do not know if it is possible to connect two devices with this framework and hold an exchange of information ( messages and files ) the same way you do with MultipeerConnectivity framework, it is possible?

In this case there are only these three frameworks that can connect via bluetooth or are there others?

Upvotes: 0

Views: 13210

Answers (2)

Henry F
Henry F

Reputation: 4980

Core Bluetooth is all that you need to connect two devices. There is no need for third-party frameworks. Even though most tutorials and examples are related to temperature and heart monitors, they demonstrate the basic concepts of connecting to peripherals and transferring data between the two. Also, if you are using a third party Bluetooth or BLE chip, reference the API that came along with it.

This tutorial should be enough to get you going. It demonstrates basic broadcasting, connecting the transferring data:

Practical Core Bluetooth Tutorial

And if you want to learn about the more inner-workings of Core Bluetooth, check out Apple's Docs: About Core Bluetooth

Upvotes: 3

davis
davis

Reputation: 1951

Checkout LGBluetooth. It is a lightweight library for interacting with CoreBluetooth. It lets you send serial data to connected devices and peripherals.

Upvotes: 2

Related Questions