docs/library/ubluetooth.rst: Add gap_pair() docs.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
parent
801e8ffacf
commit
fff634e031
@ -368,6 +368,15 @@ Central & Peripheral Roles
|
|||||||
Returns ``False`` if the connection handle wasn't connected, and ``True``
|
Returns ``False`` if the connection handle wasn't connected, and ``True``
|
||||||
otherwise.
|
otherwise.
|
||||||
|
|
||||||
|
.. method:: BLE.gap_pair(conn_handle, /)
|
||||||
|
|
||||||
|
Initiate pairing with the remote device.
|
||||||
|
|
||||||
|
Before calling this, ensure that the ``io``, ``mitm``, ``le_secure``, and
|
||||||
|
``bond`` configuration options are set (via :meth:`config<BLE.config>`).
|
||||||
|
|
||||||
|
On successful pairing, the ``_IRQ_ENCRYPTION_UPDATED`` event will be raised.
|
||||||
|
|
||||||
|
|
||||||
GATT Server
|
GATT Server
|
||||||
-----------
|
-----------
|
||||||
|
Loading…
Reference in New Issue
Block a user