@@ -149,19 +149,25 @@ created. Socket addresses are represented as follows:
149
149
:const: `BDADDR_LE_RANDOM `.
150
150
151
151
.. versionchanged :: 3.14
152
- Added ``cid `` and ``bdaddr_type `` fields.
152
+ Added ``cid `` and ``bdaddr_type `` fields.
153
153
154
154
- :const: `BTPROTO_RFCOMM ` accepts ``(bdaddr, channel) `` where ``bdaddr ``
155
155
is the Bluetooth address as a string and ``channel `` is an integer.
156
156
157
- - :const: `BTPROTO_HCI ` accepts ``(device_id,) `` where ``device_id `` is
158
- either an integer or a string with the Bluetooth address of the
159
- interface. (This depends on your OS; NetBSD and DragonFlyBSD expect
160
- a Bluetooth address while everything else expects an integer.)
157
+ - :const: `BTPROTO_HCI ` accepts a format that depends on your OS.
158
+
159
+ - On Linux it accepts a tuple ``(device_id,) `` where ``device_id ``
160
+ is an integer specifying the number of the Bluetooth device.
161
+ - On FreeBSD, NetBSD and DragonFly BSD it accepts ``bdaddr `` where ``bdaddr ``
162
+ is a :class: `bytes ` object containing the Bluetooth address in a
163
+ string format. (ex. ``b'12:23:34:45:56:67' ``)
161
164
162
165
.. versionchanged :: 3.2
163
166
NetBSD and DragonFlyBSD support added.
164
167
168
+ .. versionchanged :: 3.13.3
169
+ FreeBSD support added.
170
+
165
171
- :const: `BTPROTO_SCO ` accepts ``bdaddr `` where ``bdaddr `` is a
166
172
:class: `bytes ` object containing the Bluetooth address in a
167
173
string format. (ex. ``b'12:23:34:45:56:67' ``)
@@ -662,16 +668,15 @@ Constants
662
668
These constants describe the Bluetooth address type when binding or
663
669
connecting a :const: `BTPROTO_L2CAP ` socket.
664
670
665
- .. versionadded :: 3.14
671
+ .. versionadded :: 3.14
666
672
667
673
.. data :: HCI_FILTER
668
674
HCI_TIME_STAMP
669
675
HCI_DATA_DIR
670
676
671
- For use with :const: `BTPROTO_HCI `. :const: `HCI_FILTER ` is not
672
- available for NetBSD or DragonFlyBSD. :const: `HCI_TIME_STAMP ` and
673
- :const: `HCI_DATA_DIR ` are not available for FreeBSD, NetBSD, or
674
- DragonFlyBSD.
677
+ For use with :const: `BTPROTO_HCI `. :const: `!HCI_FILTER ` is only
678
+ available on Linux and FreeBSD. :const: `!HCI_TIME_STAMP ` and
679
+ :const: `!HCI_DATA_DIR ` are only available on Linux.
675
680
676
681
.. data :: AF_QIPCRTR
677
682
0 commit comments