Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Flutter_blue | 2,213 | 30 | 14 | 5 months ago | 31 | March 15, 2021 | 653 | bsd-3-clause | Dart | |
Bluetooth plugin for Flutter | ||||||||||
Btlejack | 1,649 | 10 months ago | 9 | November 18, 2022 | 15 | mit | Python | |||
Bluetooth Low Energy Swiss-army knife | ||||||||||
Corebluetoothperipheral | 384 | 10 years ago | 2 | apache-2.0 | Objective-C | |||||
Demonstration of using CoreBluetooth on Mac and iOS | ||||||||||
Bluetoothchat | 278 | 5 years ago | 3 | Java | ||||||
基于Android Classic Bluetooth的蓝牙聊天软件,目前仅支持一对一实时通信、文件传输、好友添加、好友分组、好友在线状态更新等功能,其中消息发送支持文本、表情等方式。 | ||||||||||
Bluetooth Numbers Database | 253 | 3 days ago | 2 | other | JavaScript | |||||
An up-to-date listing of all the various Bluetooth Specification-related elements that are defined by our industry (Company IDs, Service UUIDs, Characteristic UUIDs and Descriptor UUIDs), that you can use instead of rolling your own. | ||||||||||
Blue Falcon | 251 | 3 months ago | 25 | September 30, 2020 | 8 | gpl-3.0 | Kotlin | |||
A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android | ||||||||||
Bluetooth Le | 194 | 6 | a month ago | 44 | January 02, 2023 | 21 | mit | TypeScript | ||
Capacitor plugin for Bluetooth Low Energy | ||||||||||
H Ble | 167 | 5 years ago | 4 | Java | ||||||
Android Ble类库,基于回调,暴露搜索、连接、发送、接收、断开连接等接口,无需关心细节操作即可进行Ble通信。 | ||||||||||
Pytile | 152 | 89 | 16 hours ago | 32 | February 03, 2022 | 2 | mit | Python | ||
📡 A simple Python API for Tile® Bluetooth trackers | ||||||||||
Bluez Ibeacon | 141 | 10 years ago | 2 | mit | Objective-C | |||||
Complete example of using Bluez as an iBeacon |
A Bluetooth "Cross Platform" Kotlin Multiplatform library for iOS, Android, MacOS, Raspberry Pi and Javascript.
Bluetooth in general has the same functionality for all platforms, e.g. connect to device, fetch services, fetch characteristics.
This library is the glue that brings those together so that mobile developers can use one common api to perform the bluetooth actions.
The idea is to have a common api for using bluetooth as the principle of bluetooth is the same but each platform ios and android has different apis which means you have to duplicate the logic for each platform.
What this library isn't? It is not a cross platform library, this is a multiplatform library. The difference? each platform is compiled down to the native code, so when you use the library in iOS, you are consuming an obj-c library and same principle for Android and so on.
Create an instance of BlueFalcon and then call the scan method.
By passing in a string uuid of the service uuid, you can filter to scan for only devices that have that service.
let blueFalcon = BlueFalcon(serviceUUID: nil)
blueFalcon.scan()
implementation 'dev.bluefalcon:blue-falcon-android:0.10.10'
And if you are using the debug variant:
implementation 'dev.bluefalcon:blue-falcon-android-debug:0.10.10'
The Android sdk requires an Application context, we do this by passing in on the BlueFalcon constructor, in this example we are calling the code from an activity(this).
By passing in a string uuid of the service uuid, you can filter to scan for only devices that have that service.
try {
val blueFalcon = BlueFalcon(this, null)
blueFalcon.scan()
} catch (exception: PermissionException) {
//request the ACCESS_COARSE_LOCATION permission
}
The Raspberry Pi library is using Java.
implementation 'dev.bluefalcon:blue-falcon-rpi:0.10.10'
Simply copy the compiled javascript file (blue-falcon.js) to your web directory.
See the JS-Example for details on how to use.
implementation 'dev.bluefalcon:blue-falcon:0.10.10'
repositories {
maven { url = uri("https://jitpack.io") }
// or if you use KTS
maven("https://jitpack.io")
}
Please look at the Kotlin Multiplatform example in the Examples folder.
The basic functionality of the api is listed below, this should be a simplistic as possible and is the same in any platform.
fun connect(bluetoothPeripheral: BluetoothPeripheral, autoConnect: Boolean)
fun disconnect(bluetoothPeripheral: BluetoothPeripheral)
fun scan()
fun stopScanning()
fun readCharacteristic(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristic: BluetoothCharacteristic
)
fun notifyCharacteristic(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristic: BluetoothCharacteristic,
notify: Boolean
)
fun writeCharacteristic(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristic: BluetoothCharacteristic,
value: String
)
fun readDescriptor(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristic: BluetoothCharacteristic,
bluetoothCharacteristicDescriptor: BluetoothCharacteristicDescriptor
)
fun changeMTU(bluetoothPeripheral: BluetoothPeripheral, mtuSize: Int)
This repo contains examples for kotlin MP, ios and android in the examples folder, install their dependencies, and run it locally:
Open the kotlin MP example directory in InteliJ and then run the install targets.
To run the MacOS & iOS example, you need to reference the relevant framework by including it in your poroject. Ensure your project has the Framework search paths referencing the framework directory.
Open the root directory of the project in Android Studio and run the Android app target from the ide.
This example can only be ran on a Raspberry pi, it will crash otherwise.
Open the index.html file in a web browser.
For a bug, feature request, or cool idea, please file a Github issue.
Keep in mind that Blue-Falcon is maintained by volunteers. Please be patient if you don’t immediately get an answer to your question; we all have jobs, families, obligations, and lives beyond this project.
Many thanks to everyone so far who has contributed to the project, it really means alot.