react-native-ble-manager
Advanced tools
Comparing version 6.6.10 to 6.7.0
{ | ||
"name": "react-native-ble-manager", | ||
"version": "6.6.10", | ||
"version": "6.7.0", | ||
"description": "A BLE module for react native.", | ||
@@ -5,0 +5,0 @@ "main": "BleManager", |
@@ -155,2 +155,3 @@ # react-native-ble-manager | ||
- `restoreIdentifierKey` - `String` - [iOS only] Unique key to use for CoreBluetooth state restoration | ||
- `queueIdentifierKey` - `String` - [iOS only] Unique key to use for a queue identifier on which CoreBluetooth events will be dispatched | ||
- `forceLegacy` - `Boolean` - [Android only] Force to use the LegacyScanManager | ||
@@ -682,3 +683,7 @@ | ||
import { bytesToString } from 'convert-string'; | ||
import { NativeModules, NativeEventEmitter } from 'react-native'; | ||
const BleManagerModule = NativeModules.BleManager; | ||
const bleManagerEmitter = new NativeEventEmitter(BleManagerModule); | ||
async function connectAndPrepare(peripheral, service, characteristic) { | ||
@@ -685,0 +690,0 @@ // Connect to device |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
187393
720