# BLEPeripheralServer.onCharacteristicReadRequest(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 to connected devices request to read the eigenvalue events of the current peripheral device. 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 connected devices requesting to read the current peripheral's eigenvalue event

# parameter

# Object res
attribute type Introductions
serviceId String Bluetooth Feature Corresponding Service UUID
characteristicId String Bluetooth characteristic UUID
callbackId Number Unique identifier, calling writeCharacteristicValue Use when