diff options
-rw-r--r-- | docs/library/bluetooth.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/library/bluetooth.rst b/docs/library/bluetooth.rst index 3ab6c72b4..6ef660416 100644 --- a/docs/library/bluetooth.rst +++ b/docs/library/bluetooth.rst @@ -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 |