douglasjunior / react-native-easybluetooth-classic

⚛ A Library for easy implementation of Serial Bluetooth Classic on React Native (Android Only).
https://www.npmjs.com/package/easy-bluetooth-classic
MIT License
43 stars 7 forks source link

Is this working iOS? #1

Closed 0lide closed 7 years ago

0lide commented 7 years ago

I'm looking rn library which I can use with Android and iOS, is this supporting iOS?

douglasjunior commented 7 years ago

Unfortunately this version will not work for classic bluetooth on iOS, as it is bureaucratic on the iPhone, as it depends on the MFI.

I have plans to implement Bluetooth Low Energy. This is from Bluetooth 4.0. I already have the code, but I'm still without a Mac to integrate into React Native.

0lide commented 7 years ago

I need use device over BT RFCOMM, is it possible with your Bluetooth Low Energy library?

douglasjunior commented 7 years ago

RFCOMM is serial connection, right? Write bytes on one side and read bytes on the other side? If so, the answer is yes. I created these libraries for this. But both devices need to be Bluetooth Low Energy.

0lide commented 7 years ago

Apparently yes, but device is not low energy device, it works with Class 2.1 Bluetooth. So I believe this ble library not work?

douglasjunior commented 7 years ago

No. And there is another problem, if this Bluetooth 2.1 device does not have MFI certification it does not work on iOS.

0lide commented 7 years ago

Yes it have MFI Certification. Thank you of your answer! I'm new with rn and this bt is small issue now :)

douglasjunior commented 7 years ago

You're welcome! React Native is very good, it is very easy to create native modules to access native resources, if you need it will not be difficult to create your solution.