# BLEPeripheralServer.writeCharacteristicValue(Object Object)
Start from base library version 2.10.3. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Not supported
Writes a binary data value to the specified feature, notifying the connected host that the slave's characteristic value has changed, and the interface handles whether to walk back to the packet or to subscribe.
# parameter
# Object Object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
serviceId | String | yes | Bluetooth Feature Corresponding Service UUID | |
characteristicId | String | yes | Bluetooth characteristic UUID | |
value | ArrayBuffer | yes | characteristic Corresponding binary value | |
needNotify | Boolean | yes | Do you need to notify the host value Updated | |
callbackId | Number | no | Optionally, use the | |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |