Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index 7a29cac6235287c51a90fba637199bc483b8d22f..5a8380328425cbfb5667b02e74d75fb637a71499 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -227,6 +227,11 @@ class BluetoothDevice {
// DEVICE_PERIPHERAL.
DeviceType GetDeviceType() const;
+ // Returns the "received signal strength indication" (RSSI) of the device.
+ // The RSSI is a measurement of the power present in a received radio signal.
+ // Larger (typically, less negative) values indicate a stronger signal.
+ virtual int GetRSSI() const = 0;
keybuk 2014/04/23 08:59:19 Is this the RSSI of inquiry/AD packets - or is thi
Ilya Sherman 2014/04/24 06:45:16 It's the latter. Do you want me to include a pair
keybuk 2014/04/24 11:25:52 If synchronous then there should definitely be a c
+
// Indicates whether the device is known to support pairing based on its
// device class and address.
bool IsPairable() const;

Powered by Google App Engine
This is Rietveld 408576698