doc: Update Advertisement Monitor API description
authorMiao-chen Chou <mcchou@chromium.org>
Sat, 12 Sep 2020 06:51:33 +0000 (23:51 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:32 +0000 (19:08 +0530)
This modifies the following description to Advertisement Monitor API.
- Add org.bluez.Error.Failed to RegisterMonitor() method.
- Add more description about the usage of RegisterMonitor() and
UnregisterMonitor() methods.
- Add description about the ranges for the fields in property
RSSIThresholdsAndTimers.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
doc/advertisement-monitor-api.txt

index 74adbfa..e09b6fd 100644 (file)
@@ -49,7 +49,7 @@ Properties    string Type [read-only]
                        org.bluez.AdvertisementMonitorManager1 for the available
                        options.
 
-               (Int16, Uint16, Int16, Uint16) RSSIThreshholdsAndTimers [read-only, optional]
+               (Int16, Uint16, Int16, Uint16) RSSIThresholdsAndTimers [read-only, optional]
 
                        This contains HighRSSIThreshold, HighRSSIThresholdTimer,
                        LowRSSIThreshold, LowRSSIThresholdTimer in order. The
@@ -66,7 +66,11 @@ Properties   string Type [read-only]
                        RSSIs of the received advertisement(s) during
                        LowRSSIThresholdTimer do not reach LowRSSIThreshold.
 
-               array{(uint8, uint8, string)} Patterns [read-only, optional]
+                       The valid range of a RSSI is -127 to +20 dBm while 127
+                       dBm indicates unset. The valid range of a timer is 1 to
+                       300 seconds while 0 indicates unset.
+
+               array{(uint8, uint8, array{byte})} Patterns [read-only, optional]
 
                        If Type is set to 0x01, this must exist and has at least
                        one entry in the array.
@@ -80,8 +84,9 @@ Properties    string Type [read-only]
                                See https://www.bluetooth.com/specifications/
                                assigned-numbers/generic-access-profile/ for
                                the possible allowed value.
-                       string content_of_pattern
-                               This is the value of the pattern.
+                       array{byte} content_of_pattern
+                               This is the value of the pattern. The maximum
+                               length of the bytes is 31.
 
 Advertisement Monitor Manager hierarchy
 =======================================
@@ -91,20 +96,31 @@ Object path /org/bluez/{hci0,hci1,...}
 
 Methods                void RegisterMonitor(object application)
 
-                       This registers a hierarchy of advertisement monitors.
+                       This registers the root path of a hierarchy of
+                       advertisement monitors.
                        The application object path together with the D-Bus
                        system bus connection ID define the identification of
                        the application registering advertisement monitors.
+                       Once a root path is registered by a client via this
+                       method, the client can freely expose/unexpose
+                       advertisement monitors without re-registering the root
+                       path again. After use, the client should call
+                       UnregisterMonitor() method to invalidate the
+                       advertisement monitors.
 
                        Possible errors: org.bluez.Error.InvalidArguments
                                         org.bluez.Error.AlreadyExists
+                                        org.bluez.Error.Failed
 
                void UnregisterMonitor(object application)
 
-                       This unregisters advertisement monitors that have been
-                       previously registered. The object path parameter must
-                       match the same value that has been used on
-                       registration.
+                       This unregisters a hierarchy of advertisement monitors
+                       that has been previously registered. The object path
+                       parameter must match the same value that has been used
+                       on registration. Upon unregistration, the advertisement
+                       monitor(s) should expect to receive Release() method as
+                       the signal that the advertisement monitor(s) has been
+                       deactivated.
 
                        Possible errors: org.bluez.Error.InvalidArguments
                                         org.bluez.Error.DoesNotExist