@@ -209,3 +209,16 @@ Properties byte ActiveInstances
Possible values: "1M"
"2M"
"Coded"
+
+ void SetAdvertisingIntervals(uint16 min_interval_ms,
+ uint16 max_interval_ms)
+
+ This method sets the advertising intervals.
+
+ The parameters min_interval_ms and max_interval_ms
+ are specified in milli-seconds. Valid values of
+ the intervals must fall between 20 ms and 10,240 ms.
+
+ Possible errors: org.bluez.Error.Failed
+ org.bluez.Error.InProgress
+ org.bluez.Error.InvalidArguments
@@ -2925,6 +2925,31 @@ Read Extended Controller Information Command
Invalid Index
+Set Advertising Intervals Command
+=================================
+
+ Command Code: 0x0101
+ Controller Index: <controller id>
+ Command Parameters: Min_Interval (2 Octets)
+ Max_Interval (2 Octets)
+ Return Parameters: Current_Settings (4 Octets)
+
+ This command is used to set advertising intervals. The intervals
+ are expressed in multiples of 0.625 ms. The default values of
+ both intervals are 0x0800. Valid Min_Interval and Max_Interval
+ values must fall between 0x0020 and 0x4000.
+
+ The advertising intervals are first kept in hdev struct. The values
+ would be sent to the controller and take effect when advertising is
+ actually enabled. If the advertising intervals are set when
+ advertising is already on, the advertising would be disabled and
+ re-enabled to make the intervals take effect.
+
+ Possible errors: Busy
+ Rejected
+ Invalid Parameters
+
+
Set Appearance Command
======================
Signed-off-by: Howard Chung <howardchung@google.com> --- Changes in v2: None doc/advertising-api.txt | 13 +++++++++++++ doc/mgmt-api.txt | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+)