MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onDescriptorValue

Method onDescriptorValue

modules/network/ble/gatt.js:54–58  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

52 this.ble.onCharacteristicValue(characteristic, typedBufferToValue(characteristic.type, params.value));
53 }
54 static onDescriptorValue(params) {
55 const descriptor = this._findDescriptorByHandle(params.handle);
56 if (descriptor)
57 this.ble.onDescriptorValue(descriptor, typedBufferToValue(descriptor.type, params.value));
58 }
59 static onDescriptorWritten(params) {
60 let descriptor = this._findDescriptorByHandle(params.handle);
61 if (descriptor)

Callers

nothing calls this directly

Calls 2

typedBufferToValueFunction · 0.90

Tested by

no test coverage detected