API函数名字写错误了
BLEPeripheralServer.onOnCharacteristicReadRequest(function callback)
onOnCharacteristicReadRequest这个应该是onCharacteristicReadRequest,多了个on
同样的下面几个函数也是
- BLEPeripheralServer.offOnCharacteristicReadRequest
- BLEPeripheralServer.offOnCharacteristicWriteRequest
- BLEPeripheralServer.onOnCharacteristicReadRequest
- BLEPeripheralServer.onOnCharacteristicWriteRequest