Confirmed users
891
edits
| Line 8: | Line 8: | ||
[CheckPermissions="bluetooth"] | [CheckPermissions="bluetooth"] | ||
interface BluetoothGattCharacteristic | interface BluetoothGattCharacteristic | ||
{ | { | ||
// Write Type | // Write Type | ||
const unsigned short WRITE_TYPE_NO_RESPONSE = 0x0001; | const unsigned short WRITE_TYPE_NO_RESPONSE = 0x0001; | ||
| Line 29: | Line 19: | ||
readonly attribute DOMString [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#uuid|uuid]]; | readonly attribute DOMString [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#uuid|uuid]]; | ||
readonly attribute unsigned short [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#instanceId|instanceId]]; | readonly attribute unsigned short [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#instanceId|instanceId]]; | ||
readonly attribute | readonly attribute CharacteristicProperties [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#properties_2|properties]]; | ||
attribute unsigned short [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#writeType|writeType]]; | attribute unsigned short [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#writeType|writeType]]; | ||
readonly attribute ArrayBuffer? [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#value|value]]; | readonly attribute ArrayBuffer? [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#value|value]]; | ||
| Line 38: | Line 28: | ||
[NewObject, Throws] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#stopNotification.28.29|stopNotifications()]]; | [NewObject, Throws] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#stopNotification.28.29|stopNotifications()]]; | ||
}; | }; | ||
=== CharacteristicProperties === | |||
dictionary CharacteristicProperties | |||
{ | |||
required boolean broadcast; | |||
required boolean read; | |||
required boolean writeNoResponse; | |||
required boolean write; | |||
required boolean notify; | |||
required boolean indicate; | |||
required boolean signedWrite; | |||
required boolean extendedProps; | |||
}; | |||
=== CharacteristicWriteType === | |||
dictionary CharacteristicWriteType | |||
{ | |||
required boolean noResponse; | |||
required boolean default; | |||
required boolean signed; | |||
}; | |||
== Properties == | == Properties == | ||