Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

811 bytes added, 05:46, 22 August 2014
Event Handlers
== 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|gatt.services]] in this event handler would get the updated list; Sample var gatt = device.gatt; gatt.onservicechanged = function onServiceChanged() { console.log("Services on remote LE devices have been added, removed, or modified. Check the services list to ensure services in use still exist."); }; === oncharacteristicchanged === === onconnectionstatechanged===
== Methods ==
Confirm
891
edits

Navigation menu