Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

702 bytes removed, 10:41, 26 January 2015
remove onservicechanged
== Event Handlers ==
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#onservicechanged|BluetoothGatt.onservicechanged]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#oncharacteristicchanged|BluetoothGatt.oncharacteristicchanged]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#onconnectionstatechanged|BluetoothGatt.onconnectionstatechanged]]
 
=== onservicechanged ===
; Description
: A handler to trigger when GATT services on the remote LE device have been added, removed, or modified. Access to property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#services|services]] in this event handler would get the updated list. See BT4.1 3.G.2.5.2 and 3.G.7.1 for detailed information.
 
; Sample
var gatt = device.gatt;
if (gatt) {
gatt.onservicechanged = function onServiceChanged() {
console.log("Services on remote LE device have been added, removed, or modified. Check the services list to ensure services in use still exist.");
};
}
=== oncharacteristicchanged ===
120
edits

Navigation menu