docs/library/ubluetooth: Add docs for gatts_set_buffer.

This commit is contained in:
Jim Mussared 2019-10-28 17:29:08 +11:00 committed by Damien George
parent d16a27da51
commit ca3d4c84e4

View File

@ -246,6 +246,17 @@ writes from a central to a given characteristic, use
of the notification, avoiding the need for a separate read request. Note
that this will not update the local value stored.
.. method:: BLE.gatts_set_buffer(value_handle, len, append=False)
Sets the internal buffer size for a value in bytes. This will limit the
largest possible write that can be received. The default is 20.
Setting *append* to ``True`` will make all remote writes append to, rather
than replace, the current value. At most *len* bytes can be buffered in
this way. When you use :meth:`gatts_read <BLE.gatts_read>`, the value will
be cleared after reading. This feature is useful when implementing something
like the Nordic UART Service.
Central Role (GATT Client)
--------------------------