English | 简体中文
SerialPort is an open source android bluetooth lightweight package library that easily solves the complexity of building your own bluetooth application, allowing people to focus on their own designs without considering the underlying configuration of android bluetooth.
- Chain call
- Legacy and BLE
- Built-in must-have search interface
- Search and connection status monitoring
- Automatic reconnection mechanism
- Toast prompt content modification
This project is released under the Apache 2.0 license.
4.2.0 was released in 7/6/2022:
- [Fix] Some compilation warnings about bluetooth permissions
- [Modify] Upgrade
Kotlin
andGradle
versions - [Modify] Mark
ConnectionResultCallback
obsolete - [Feature] Added Ble device to send byte array
- [Feature] Added Ble device can work callback
- [Feature] Added Server
For more changelogs see: Changelog
Please refer to install.md for installation.
Please see Basic usage Kotlin.md or Basic usage Java.md for the basic usage of SerialPort.
We provide complete documentation. documentation
The following is the simplest Demo source code of Java and Kotlin based on SerialPort to implement Bluetooth App
Java
Kotlin