diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2019-10-15 12:07:29 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-15 17:22:53 +1100 |
commit | 36502bdfdcd63b2bc87027380dc63098221e8b04 (patch) | |
tree | 3e62d5b937bf1a96225687076f6a21af2e76cffb /docs/library/bluetooth.rst | |
parent | ea315d7d58e429d27c4d4fb4b98a432e86fdcae6 (diff) |
extmod/modbluetooth: Make gap_disconnect not raise when disconnected.
Previously it raised OSError(MP_ENOTCONN) if the conn_handle was already
disconnected. Now it returns True/False.
Diffstat (limited to 'docs/library/bluetooth.rst')
-rw-r--r-- | docs/library/bluetooth.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/library/bluetooth.rst b/docs/library/bluetooth.rst index 6ef660416..00ced33e5 100644 --- a/docs/library/bluetooth.rst +++ b/docs/library/bluetooth.rst @@ -262,6 +262,9 @@ Central Role (GATT Client) On success, the ``_IRQ_PERIPHERAL_DISCONNECT`` event will be raised. + Returns ``False`` if the connection handle wasn't connected, and ``True`` + otherwise. + .. method:: BLE.gattc_discover_services(conn_handle) Query a connected peripheral for its services. |