# BLEPeripheralServer.onCharacteristicWriteRequest(function callback)
Start from base library version 2.10.3. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Not supported
Listen for connected device requests to write the current peripheral's eigenvalue event. You need to call the writeCharacteristicValue Write back the data or the host will not receive the response.
# parameter
# function callback
A callback function for the current peripheral's eigenvalue event is requested by the connected device
# parameter
# Object object
attribute | type | Introductions |
---|---|---|
serviceId | String | Bluetooth Feature Corresponding Service UUID |
characteristicId | String | Bluetooth characteristic UUID |
callbackId | Number | Unique identifier, calling writeCharacteristicValue Use when |
value | ArrayBuffer | Request write feature binary data value |