mirror of
https://github.com/python/cpython.git
synced 2025-09-28 03:13:48 +00:00
gh-132099: Fix documentation for the BTPROTO_HCI protocol (GH-132118)
This commit is contained in:
parent
c7f6535e4a
commit
1d97488c95
1 changed files with 15 additions and 10 deletions
|
@ -154,14 +154,20 @@ created. Socket addresses are represented as follows:
|
||||||
- :const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr``
|
- :const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr``
|
||||||
is the Bluetooth address as a string and ``channel`` is an integer.
|
is the Bluetooth address as a string and ``channel`` is an integer.
|
||||||
|
|
||||||
- :const:`BTPROTO_HCI` accepts ``(device_id,)`` where ``device_id`` is
|
- :const:`BTPROTO_HCI` accepts a format that depends on your OS.
|
||||||
either an integer or a string with the Bluetooth address of the
|
|
||||||
interface. (This depends on your OS; NetBSD and DragonFlyBSD expect
|
- On Linux it accepts a tuple ``(device_id,)`` where ``device_id``
|
||||||
a Bluetooth address while everything else expects an integer.)
|
is an integer specifying the number of the Bluetooth device.
|
||||||
|
- On FreeBSD, NetBSD and DragonFly BSD it accepts ``bdaddr`` where ``bdaddr``
|
||||||
|
is a :class:`bytes` object containing the Bluetooth address in a
|
||||||
|
string format. (ex. ``b'12:23:34:45:56:67'``)
|
||||||
|
|
||||||
.. versionchanged:: 3.2
|
.. versionchanged:: 3.2
|
||||||
NetBSD and DragonFlyBSD support added.
|
NetBSD and DragonFlyBSD support added.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.13.3
|
||||||
|
FreeBSD support added.
|
||||||
|
|
||||||
- :const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is a
|
- :const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is a
|
||||||
:class:`bytes` object containing the Bluetooth address in a
|
:class:`bytes` object containing the Bluetooth address in a
|
||||||
string format. (ex. ``b'12:23:34:45:56:67'``)
|
string format. (ex. ``b'12:23:34:45:56:67'``)
|
||||||
|
@ -668,10 +674,9 @@ Constants
|
||||||
HCI_TIME_STAMP
|
HCI_TIME_STAMP
|
||||||
HCI_DATA_DIR
|
HCI_DATA_DIR
|
||||||
|
|
||||||
For use with :const:`BTPROTO_HCI`. :const:`HCI_FILTER` is not
|
For use with :const:`BTPROTO_HCI`. :const:`!HCI_FILTER` is only
|
||||||
available for NetBSD or DragonFlyBSD. :const:`HCI_TIME_STAMP` and
|
available on Linux and FreeBSD. :const:`!HCI_TIME_STAMP` and
|
||||||
:const:`HCI_DATA_DIR` are not available for FreeBSD, NetBSD, or
|
:const:`!HCI_DATA_DIR` are only available on Linux.
|
||||||
DragonFlyBSD.
|
|
||||||
|
|
||||||
.. data:: AF_QIPCRTR
|
.. data:: AF_QIPCRTR
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue