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 | 7 | a month ago | 31 | March 15, 2021 | 653 | bsd-3-clause | Dart | |
Bluetooth plugin for Flutter | ||||||||||
Btlejack | 1,649 | 6 months ago | 8 | November 10, 2021 | 15 | mit | Python | |||
Bluetooth Low Energy Swiss-army knife | ||||||||||
Corebluetoothperipheral | 384 | 9 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的蓝牙聊天软件,目前仅支持一对一实时通信、文件传输、好友添加、好友分组、好友在线状态更新等功能,其中消息发送支持文本、表情等方式。 | ||||||||||
Blue Falcon | 248 | 11 days ago | 25 | September 30, 2020 | 9 | gpl-3.0 | Kotlin | |||
A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android | ||||||||||
Bluetooth Numbers Database | 229 | 16 days ago | 3 | 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. | ||||||||||
Bluetooth Le | 170 | 6 | 24 days ago | 44 | January 02, 2023 | 19 | mit | TypeScript | ||
Capacitor plugin for Bluetooth Low Energy | ||||||||||
H Ble | 167 | 5 years ago | 4 | Java | ||||||
Android Ble类库,基于回调,暴露搜索、连接、发送、接收、断开连接等接口,无需关心细节操作即可进行Ble通信。 | ||||||||||
Bluez Ibeacon | 141 | 10 years ago | 2 | mit | Objective-C | |||||
Complete example of using Bluez as an iBeacon | ||||||||||
Pytile | 139 | 89 | 2 days ago | 32 | February 03, 2022 | 4 | mit | Python | ||
📡 A simple Python API for Tile® Bluetooth trackers |
Node.js implementation of the Web Bluetooth Specification
Node.js > v10.20.0, which includes npm
.
$ npm install webbluetooth
See the examples or view the API documentation at:
https://thegecko.github.io/webbluetooth/
The module exports a default navigator.bluetooth
instance, the Bluetooth
class to allow you to instantiate your own bluetooth instances and the Bluetooth helper methods:
To use existing Web Bluetooth scripts, you can simply use the default bluetooth
instance in place of the navigator.bluetooth
object:
const bluetooth = require('webbluetooth').bluetooth;
const device = await bluetooth.requestDevice({
filters:[{ services:[ 'heart_rate' ] }]
});
const server = await device.gatt.connect();
...
The first device matching the filters will be returned.
You may want to create your own instance of the Bluetooth
class. For example, to inject a device chooser function or control the referring device:
const Bluetooth = require('webbluetooth').Bluetooth;
const deviceFound = (device, selectFn) => {
// If device can be automatically selected, do so by returning true
if (device.name === 'myName') return true;
// Otherwise store the selectFn somewhere and execute it later to select this device
};
const bluetooth = new Bluetooth({ deviceFound });
const device = await bluetooth.requestDevice({
filters:[{ services:[ 'heart_rate' ] }]
});
const server = await device.gatt.connect();
...
The Web Bluetooth specification can be found here:
https://webbluetoothcg.github.io/web-bluetooth/
This repository uses a submodule to reference the SimpleBLE library. Clone it as follows:
git clone https://github.com/thegecko/webbluetooth
cd webbluetooth
git submodule update --init
To build the SimpleBLE module, bindings and TypeScriptsource, run:
yarn build:all
The tests are set up to use a BBC micro:bit in range with the following services available:
Firmware for this hardware including the services can be found here: https://microbit.org/get-started/user-guide/firmware/
To run the tests:
yarn test