Overview of Bluetooth Low Energy plugin capabilities
mainThis plugin provides Bluetooth Low Energy (BLE) support for Web, Android, and iOS. It follows the Web Bluetooth API as a guideline for feature parity across platforms.
Key Constraints:
- Supports Bluetooth Low Energy (BLE) only. It does not support Bluetooth Classic or Serial.
- Supports the Central role only. If you need to implement the Peripheral role, use alternative plugins like
cordova-plugin-bluetoothleorcordova-plugin-ble-peripheral.
Core API Methods:
initialize(...): Prepares the plugin for use.requestDevice(...): Triggers a device selection dialog.connect(...)/disconnect(...): Manages connections to peripherals.read(...)/write(...): Handles data exchange with characteristics.startNotifications(...)/stopNotifications(...): Manages characteristic notifications.