Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-132099: Fix documentation for the BTPROTO_HCI protocol#132118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
9ad9c061c32480e17e43e0e8b7507bd9d06ac626d4113b9b4File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -149,19 +149,25 @@ created. Socket addresses are represented as follows: | ||||||||||
| :const:`BDADDR_LE_RANDOM`. | ||||||||||
| .. versionchanged:: 3.14 | ||||||||||
| Added ``cid`` and ``bdaddr_type`` fields. | ||||||||||
| - :const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr`` | ||||||||||
| is the Bluetooth address as a string and ``channel`` is an integer. | ||||||||||
| - :const:`BTPROTO_HCI` accepts a format that depends on your OS. | ||||||||||
| - On Linux it accepts a tuple ``(device_id,)`` where ``device_id`` | ||||||||||
| 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'``) | ||||||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
Do we want to list officially unsupported os'es here? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. There is no | ||||||||||
| .. versionchanged:: 3.2 | ||||||||||
| NetBSD and DragonFlyBSD support added. | ||||||||||
| .. versionchanged:: 3.13.3 | ||||||||||
| FreeBSD support added. | ||||||||||
| - :const:`BTPROTO_SCO` 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'``) | ||||||||||
| @@ -662,16 +668,15 @@ Constants | ||||||||||
| These constants describe the Bluetooth address type when binding or | ||||||||||
| connecting a :const:`BTPROTO_L2CAP` socket. | ||||||||||
| .. versionadded:: 3.14 | ||||||||||
| .. data:: HCI_FILTER | ||||||||||
| HCI_TIME_STAMP | ||||||||||
| HCI_DATA_DIR | ||||||||||
| For use with :const:`BTPROTO_HCI`. :const:`!HCI_FILTER` is only | ||||||||||
| available on Linux and FreeBSD. :const:`!HCI_TIME_STAMP` and | ||||||||||
| :const:`!HCI_DATA_DIR` are only available on Linux. | ||||||||||
| .. data:: AF_QIPCRTR | ||||||||||
Uh oh!
There was an error while loading.Please reload this page.