Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

25 bytes added, 06:45, 22 August 2014
oncharacteristicchanged
: A handler to trigger as a result of a remote characteristic notification.
; ParamterParameter
: ''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;
if (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