summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-11-24 23:23:51 +1100
committerDamien George <damien@micropython.org>2020-12-02 14:36:41 +1100
commit7a9aa49595e1c523a5765397db135ff8f00515b1 (patch)
treef420c0a85192028d8adb8c7bfde53d0818a46ef8
parentc70665fb0bc1b4d755abda422d221cc0a72e91da (diff)
docs/library/ubluetooth.rst: Add _IRQ_CONNECTION_UDPATE docs.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
-rw-r--r--docs/library/ubluetooth.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/library/ubluetooth.rst b/docs/library/ubluetooth.rst
index 35ac13ad5..73547c356 100644
--- a/docs/library/ubluetooth.rst
+++ b/docs/library/ubluetooth.rst
@@ -199,6 +199,9 @@ Event Handling
# A previous l2cap_send that returned False has now completed and the channel is ready to send again.
# If status is non-zero, then the transmit buffer overflowed and the application should re-send the data.
conn_handle, cid, status = data
+ elif event == _IRQ_CONNECTION_UPDATE:
+ # The remote device has updated connection parameters.
+ conn_handle, conn_interval, conn_latency, supervision_timeout, status = data
The event codes are::
@@ -229,6 +232,7 @@ The event codes are::
_IRQ_L2CAP_DISCONNECT = const(24)
_IRQ_L2CAP_RECV = const(25)
_IRQ_L2CAP_SEND_READY = const(26)
+ _IRQ_CONNECTION_UPDATE = const(27)
In order to save space in the firmware, these constants are not included on the
:mod:`ubluetooth` module. Add the ones that you need from the list above to your