{"repo":"weliem/blessed-android-coroutines","free":true,"listed":false,"github":"https://github.com/weliem/blessed-android-coroutines","clone":"git clone https://github.com/weliem/blessed-android-coroutines.git","description":"BLESSED Coroutines, a Bluetooth Low Energy (BLE) library for Android using Kotlin Coroutines","language":"Kotlin","stars":144,"topics":["bluetooth-low-energy","bluetooth-le","kotlin","coroutines","android-library"],"license":"MIT","category":"mobile-apps","readme_excerpt":"BLESSED for Android with Coroutines - BLE made easy BLESSED is a very compact Bluetooth Low Energy (BLE) library for Android 8 and higher, that makes working with BLE on Android very easy. It is powered by Kotlin's Coroutines and turns asynchronous GATT methods into synchronous methods! It is based on the Blessed Java library and has been rewritten in Kotlin using Coroutines. Installation This library is available on Jitpack. Include the following in your projects's build.gradle file: Include the following in your app's build.gradle file under dependencies block: where $version is the latest published version in Jitpack Adding permissions If you plan on supporting older devices that are on Android 11 and below, then you need to add the below permissions to your AndroidManifest.xml file: Overview of classes The library consists of 5 core classes and corresponding callback abstract classes: 1. BluetoothCentralManager , for scanning and connecting peripherals 2. BluetoothPeripheral , for all peripheral related methods 3. BluetoothPeripheralManager , and its companion abstract class BluetoothPeripheralManagerCallback 4. BluetoothCentral 5. BluetoothBytesParser The BluetoothCentralManager class is used to scan for devices and manage connections. The BluetoothPeripheral class is a replacement for the standard Android BluetoothDevice and BluetoothGatt classes. It wraps all GATT related peripheral functionality. The BluetoothPeripheralManager class is used to create your own peripher","default_branch":null,"files":null,"tree":[],"storefront":"/r/weliem","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/weliem/blessed-android-coroutines/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}