Index: chrome/common/extensions/api/bluetooth_low_energy.idl |
diff --git a/chrome/common/extensions/api/bluetooth_low_energy.idl b/chrome/common/extensions/api/bluetooth_low_energy.idl |
index 0433fb3eec28fb9e9ee79ce82e214d941627e79b..bdf4f7062f45bc97453076a6ffa25b2c15ec6f5f 100644 |
--- a/chrome/common/extensions/api/bluetooth_low_energy.idl |
+++ b/chrome/common/extensions/api/bluetooth_low_energy.idl |
@@ -464,6 +464,18 @@ namespace bluetoothLowEnergy { |
static void unregisterAdvertisement(long advertisementId, |
ResultCallback callback); |
+ // Set's the interval betweeen two consecutive advertisements. Note: |
+ // This is a best effort. The actual interval may vary non-trivially |
+ // from the specified intervals. On some hardware, we will not even |
Devlin
2016/09/21 17:07:03
s/we will not even attempt to have a minimum inter
Rahul Chaturvedi
2016/09/21 18:54:12
Done.
|
+ // attempt to have a minimum interval under 100ms. |
+ // |minInterval|: Minimum interval between advertisments (in |
+ // milliseconds). This cannot be lower than 20ms. |
+ // |maxInterval|: Maximum interval between advertisments (in |
+ // milliseconds). This cannot be more than 10240ms. |
Devlin
2016/09/21 17:07:03
Out of curiosity, why 10240?
Rahul Chaturvedi
2016/09/21 18:54:12
These are limits required by the spec. Added a lin
|
+ // |callback|: Called once the interval has been set. |
+ static void setAdvertisingInterval(long minInterval, long maxInterval, |
+ ResultCallback callback); |
+ |
// Sends a response for a characteristic or descriptor read/write |
// request. |
// This function is only available if the app has both the |