BluetoothGattAttributeEvent
Description#
The BluetoothGattAttributeEvent interface of the Bluetooth API provides access to an updated BluetoothGattCharacteristic object as the parameter of the BluetoothGattServer.onattributereadreq or BluetoothGattServer.onattributereadreq, handler, when the event is fired.
Interface overview#
Properties#
Returns a representing the characteristic that has been updated as a result of a remote notification event.
BluetoothGattAttributeEvent.addressread-onlyA string representing the address of the device which want the GATT request.BluetoothGattAttributeEvent.requestIdread-onlyThe ID of the request which can be used as parameter of BluetoothGattServer.sendResponse.BluetoothGattAttributeEvent.characteristicread-onlyThe target BluetoothGattCharacteristic of the GATT request. This property will return null if the request isn't made for characteristic.BluetoothGattAttributeEvent.descriptorread-onlyThe target BluetoothGattDescriptor of the GATT request. This property will return null if the request isn't made for descriptor.BluetoothGattAttributeEvent.valueread-onlyArrayBuffer Returns an ArrayBuffer representing the value of the GATT write request. This property will return null if the request isn't made for write request.BluetoothGattAttributeEvent.needResponseread-onlyA boolean indicating whether a response is needed for the GATT request.