|
请问 wex5能否能否实现蓝牙读取数据蓝牙设备数据功能,
我看了下cordova-plugin-ble-central插件的read方法,请问device_id, service_uuid, characteristic_uuid这几个uuid怎么获取。read方法的说明如下:
ble.read(device_id, service_uuid, characteristic_uuid, success, failure);
### Description
Function `read` reads the value of the characteristic.
Raw data is passed from native code to the callback as an [ArrayBuffer](#typed-arrays).
### Parameters
- __device_id__: UUID or MAC address of the peripheral
- __service_uuid__: UUID of the BLE service
- __characteristic_uuid__: UUID of the BLE characteristic
- __success__: Success callback function that is invoked when the connection is successful. [optional]
- __failure__: Error callback function, invoked when error occurs. [optional]
|
|