120
edits
Changes
s/ondeviceconnectionstatechanged/onconnectionstatechanged and use BluetoothStatusChangedEvent directly
<!-- * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#onexecutewritereq|BluetoothGattServer.onexecutewritereq]] -->
=== ondeviceconnectionstatechanged onconnectionstatechanged ===
; Description
: A handler to trigger when a remote LE device has been connected or disconnected.
; Argument
[CheckPermissions="bluetooth"]
interface BluetoothDeviceConnectionStateEvent BluetoothStatusChangedEvent : Event
{
readonly attribute DOMString address;
readonly attribute boolean connectedstatus;
};
: ''address''
:: Address of the connected/disconnected remote LE device.
: ''connectedstatus''
:: Whether the remote LE device is connected (true) or disconnected (false).