Confirmed users
891
edits
Line 67: | Line 67: | ||
: A handler to trigger when a remote client has requested to read a local characteristic or descriptor. | : A handler to trigger when a remote client has requested to read a local characteristic or descriptor. | ||
; | ; Argument | ||
: DOMString ''address'' | [CheckPermissions="bluetooth"] | ||
interface BluetoothGattAttributeReadEvent : Event | |||
{ | |||
readonly attribute DOMString address; | |||
readonly attribute short requestId; | |||
readonly attribute BluetoothGattCharacteristic? characteristic; | |||
readonly attribute BluetoothGattDescriptor? descriptor; | |||
}; | |||
: ''address'' | |||
:: Address of the remote client. | :: Address of the remote client. | ||
: | : ''requestId'' | ||
:: Request id of the attribute read request. | :: Request id of the attribute read request. | ||
: | : ''characteristic'' | ||
:: The characteristic requested to read. Null if remote client requests to read a local descriptor. | :: The characteristic requested to read. Null if remote client requests to read a local descriptor. | ||
: | : ''descriptor'' | ||
:: The descriptor requested to read. Null if remote client requests to read a local characteristic. | :: The descriptor requested to read. Null if remote client requests to read a local characteristic. | ||