Confirmed users
891
edits
Line 17: | Line 17: | ||
; Parameter | ; Parameter | ||
: aDeviceEvent | : aDeviceEvent | ||
:: The event | :: The event can be either | ||
:: * a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#Interface|BluetoothDeviceEvent]] (for BluetoothDiscoveryHandle returned from [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#startDiscovery.28.29|adapter.startDiscovery()]]) with property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#device|device]] as the discovered remote bluetooth device, or | |||
:: * a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothLeDeviceEvent#Interface|BluetoothLeDeviceEvent]] (for BluetoothDiscoveryHandle returned from [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter#startLeScan.28sequence.3CDOMString.3E_aUuids.29|adapter.startLeScan()]]) with property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothLeDeviceEvent#device|device]] as the found remote LE device, property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothLeDeviceEvent#rssi|rssi]] as the RSSI value, and property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothLeDeviceEvent#scanRecord|scanRecord]] as the content of advertisement record. |