diff --git a/README.md b/README.md index 68d7a55e..ac965350 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ It does NOT support: - bluetooth classic devices. - communicating between phones using BLE (Peripheral support) - [bonding peripherals](https://github.com/dotintent/react-native-ble-plx/wiki/Device-Bonding) +- [beacons](https://github.com/dotintent/react-native-ble-plx/wiki/=-FAQ:-Beacons) ## Table of Contents @@ -43,7 +44,7 @@ For old RN versions (<0.60) please check [old README](./docs/README_V1.md) (1.x) for the old instructions or [migration guide](./docs/MIGRATION_V1.md). | React Native | 3.1.2 | -|--------------| ------------------ | +| ------------ | ------------------ | | 0.74.1 | :white_check_mark: | | 0.69.6 | :white_check_mark: | | Expo 51 | :white_check_mark: | diff --git a/docs/TUTORIALS.md b/docs/TUTORIALS.md index 8d1f7bb9..4b78ea30 100644 --- a/docs/TUTORIALS.md +++ b/docs/TUTORIALS.md @@ -90,3 +90,19 @@ bleManagerInstance console.error('Get connected devices error:', error) }) ``` + +### Collecting native logs + +If you encounter any issues with the library, you can enable native logs to get more information about what is happening under the hood. To enable native logs, you need to set the `logLevel` property on the BleManager instance to `LogLevel.Verbose`. + +```js +bleManagerInstance.setLogLevel(LogLevel.Verbose) +``` + +#### Android + +To collect native logs on Android, you can open the Logcat in Android Studio and set filters to `package:mine (tag:BluetoothGatt | tag:ReactNativeJS | RxBle)` + +#### iOS + +To collect native logs on iOS, you can open the Xcode console. diff --git a/docs/index.html b/docs/index.html index 7ff43cb1..d5fe6d80 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2198,6 +2198,13 @@

Connecting to a device that is already connected to the OS

.catch(error => { console.error('Get connected devices error:', error) }) +

Collecting native logs

+

If you encounter any issues with the library, you can enable native logs to get more information about what is happening under the hood. To enable native logs, you need to set the logLevel property on the BleManager instance to LogLevel.Verbose.

+
bleManagerInstance.setLogLevel(LogLevel.Verbose)
+

Android

+

To collect native logs on Android, you can open the Logcat in Android Studio and set filters to package:mine (tag:BluetoothGatt | tag:ReactNativeJS | RxBle).

+

iOS

+

To collect native logs on iOS, you can open the Xcode console.