aboutsummaryrefslogtreecommitdiff
path: root/docs/library/bluetooth.rst
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-10-15 10:10:41 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-15 17:22:45 +1100
commitea315d7d58e429d27c4d4fb4b98a432e86fdcae6 (patch)
tree6973d9d87931f80dab7111becf27e8bb891606e3 /docs/library/bluetooth.rst
parent4b2b05718a5b07a4cdf678fbe1005162b1e043ca (diff)
docs/library/bluetooth.rst: Explain how to increase char buffer size.
Diffstat (limited to 'docs/library/bluetooth.rst')
-rw-r--r--docs/library/bluetooth.rst7
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