docs/library/bluetooth.rst: Explain how to increase char buffer size.

This commit is contained in:
Jim Mussared 2019-10-15 10:10:41 +11:00 committed by Damien George
parent 4b2b05718a
commit ea315d7d58
1 changed files with 7 additions and 0 deletions

View File

@ -181,6 +181,13 @@ is generated during service registration. They can also be read from or written
to by a remote central device. Additionally, a peripheral can "notify" a
characteristic to a connected central via a connection handle.
Characteristics and descriptors have a default maximum size of 20 bytes.
Anything written to them by a central will be truncated to this length. However,
any local write will increase the maximum size, so if you want to allow larger
writes from a central to a given characteristic, use
:meth:`gatts_write<BLE.gatts_write>` after registration. e.g.
``gatts_write(char_handle, bytes(100))``.
.. method:: BLE.gatts_register_services(services_definition)
Configures the peripheral with the specified services, replacing any