From 9bd9a209e90ecb932eda550795fa581d06e79849 Mon Sep 17 00:00:00 2001 From: dingchenjie Date: Fri, 5 Dec 2025 18:42:58 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=20=E4=BF=AE=E6=94=B9react-native-ble-p?= =?UTF-8?q?lx=E7=9A=84=E4=B8=AD=E8=8B=B1=E6=96=87=E6=8C=87=E5=AF=BC?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dingchenjie --- en/react-native-ble-plx.md | 10 ++++++---- zh-cn/react-native-ble-plx.md | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/en/react-native-ble-plx.md b/en/react-native-ble-plx.md index fb8f4a64d..e05061bbd 100644 --- a/en/react-native-ble-plx.md +++ b/en/react-native-ble-plx.md @@ -108,10 +108,11 @@ class BLEServiceInstance { } class App extends React.Component { - deviceName: string = 'time' - serviceUuid: string = '00001820-0000-1000-8000-00805F9B34FB' - characteristicUuid: string = '00001820-0000-1000-8000-00805F9B34FB' - descriptorUuid: string = '00002903-0000-1000-8000-00805F9B34FB' + //Adjust the parameters according to the specific device configuration. + deviceName: string = 'time'// The Bluetooth device name. + serviceUuid: string = '00001820-0000-1000-8000-00805F9B34FB'// Must be uppercase; the server must use the same uppercase. Scanning English characters will default to uppercase, which may prevent the specified serviceUuid from being found. + characteristicUuid: string = '00001820-0000-1000-8000-00805F9B34FB'// Must be uppercase English characters. + descriptorUuid: string = '00002903-0000-1000-8000-00805F9B34FB'// Must be uppercase English characters. device?: Device; @@ -372,6 +373,7 @@ To use this repository, you need to use the correct React-Native and RNOH versio ## Others + ## License This project is licensed under [Apache License 2.0](https://github.com/dotintent/react-native-ble-plx/blob/master/LICENSE). diff --git a/zh-cn/react-native-ble-plx.md b/zh-cn/react-native-ble-plx.md index f94f481c1..ce3f8fe31 100644 --- a/zh-cn/react-native-ble-plx.md +++ b/zh-cn/react-native-ble-plx.md @@ -106,10 +106,11 @@ class BLEServiceInstance { } class App extends React.Component { - deviceName: string = 'time' - serviceUuid: string = '00001820-0000-1000-8000-00805F9B34FB' - characteristicUuid: string = '00001820-0000-1000-8000-00805F9B34FB' - descriptorUuid: string = '00002903-0000-1000-8000-00805F9B34FB' + //该库使用需注意以下属性设置 + deviceName: string = 'time'//蓝牙设备名称 + serviceUuid: string = '00001820-0000-1000-8000-00805F9B34FB'//注意大小写必须大写,服务端一样必须大写(扫描到英文字符会默认UPPERCASE导致指定serviceUuid找不到服务) + characteristicUuid: string = '00001820-0000-1000-8000-00805F9B34FB'//需要英文字符大写 + descriptorUuid: string = '00002903-0000-1000-8000-00805F9B34FB'//需要英文字符大写 device?: Device; @@ -371,6 +372,7 @@ ohpm install ## 其他 + ## 开源协议 本项目基于 [Apache License 2.0](https://github.com/dotintent/react-native-ble-plx/blob/master/LICENSE) ,请自由地享受和参与开源。 -- Gitee