gatt-api: Add MTU property to GattCharacteristic1
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 28 Sep 2021 22:42:46 +0000 (15:42 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
This adds MTU properyt to GattCharacteristic1 which can be used in
order to determine how much data can be read/write using non-long
procedures which sometimes is the only thing the remote device
supports.

Fixes: https://github.com/bluez/bluez/issues/199
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
doc/gatt-api.txt

index e65cef88ef64d5cdfc641980adbd5a59ee17f8d1..dcd47df3df149190b39c7f38ead54ee8f0b244b0 100755 (executable)
@@ -391,6 +391,12 @@ Properties string UUID [read-only]
                        shall be used which will cause the allocated handle to
                        be set once registered.
 
+               uint16 MTU [read-only]
+
+                       Characteristic MTU, this is valid both for ReadValue
+                       and WriteValue but either method can use long
+                       procedures when supported.
+
 GATT Profile hierarchy
 =====================