Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

634 bytes added, 06:09, 22 August 2014
Event Handlers
=== oncharacteristicchanged ===
; Description
: A handler to trigger as a result of a remote characteristic notification.
 
; Paramter
: ''characteristicEvent''
:: The event is a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristicEvent#Interface|BluetoothCharacteristicEvent]] with property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristicEvent#characteristic|characteristic]] as the changed characteristic.
 
; Sample
var gatt = device.gatt;
gatt.oncharacteristicchanged = function onCharacteristicChanged(evt) {
var characteristic = evt.characteristic;
console.log("The value of characteristic (uuid:", gatt.uuid, ") changed to", gatt.value);
};
=== onconnectionstatechanged ===
Confirm
891
edits

Navigation menu