Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

537 bytes added, 07:36, 22 August 2014
readRemoteRssi()
=== readRemoteRssi() ===
 
; Description
: The method reads the RSSI for a connected remote LE device.
 
; Return
: A Promise to indicate whether the operation is resolved or rejected. If the Promise is resolved, it returns a short integer representing the RSSI value.
 
; Sample
var gatt = device.gatt;
if (gatt && gatt.connectionState === "connected") {
gatt.readRemoteRssi().then { function onResolve(rssi) {
console.log("Remote RSSI value:", rssi);
}, function onReject(aReason) {
console.log("Rejected with this reason: ", aReason);
};
}
=== beginReliableWrite() ===
Confirm
891
edits

Navigation menu