Skip to content

Commit

Permalink
docs/library/ubluetooth.rst: Add _IRQ_CONNECTION_UDPATE docs.
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
  • Loading branch information
jimmo authored and dpgeorge committed Dec 2, 2020
1 parent c70665f commit 7a9aa49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/library/ubluetooth.rst
Expand Up @@ -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::

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a9aa49

Please sign in to comment.