Chromium Code Reviews| 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..f51736e1b3fd297a74398aa2df0a7bd4e7490d01 100644 |
| --- a/chrome/common/extensions/api/bluetooth_low_energy.idl |
| +++ b/chrome/common/extensions/api/bluetooth_low_energy.idl |
| @@ -464,6 +464,19 @@ 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, there is a minimum |
|
Devlin
2016/09/21 18:56:35
nit: s/specified/requested
Rahul Chaturvedi
2016/09/21 19:18:23
Done.
|
| + // interval of 100ms. The minimum and maximum values cannot exceed the |
| + // the range allowed by the Bluetooth 4.2 specification. |
| + // |minInterval|: Minimum interval between advertisments (in |
| + // milliseconds). This cannot be lower than 20ms (as per the spec). |
| + // |maxInterval|: Maximum interval between advertisments (in |
| + // milliseconds). This cannot be more than 10240ms (as per the spec). |
| + // |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 |