-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9ad9c06
1c32480
e17e43e
0e8b750
7bd9d06
ac626d4
113b9b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -154,14 +154,19 @@ created. Socket addresses are represented as follows: | |||||||||
- :const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr`` | ||||||||||
is the Bluetooth address as a string and ``channel`` is an integer. | ||||||||||
|
||||||||||
- :const:`BTPROTO_HCI` accepts ``(device_id,)`` where ``device_id`` is | ||||||||||
either an integer or a string with the Bluetooth address of the | ||||||||||
interface. (This depends on your OS; NetBSD and DragonFlyBSD expect | ||||||||||
a Bluetooth address while everything else expects an integer.) | ||||||||||
- :const:`BTPROTO_HCI` accepts format that depends on your OS. | ||||||||||
On FreeBSD, NetBSD and DragonFlyBSD 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'``) | ||||||||||
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
We can expand IMO, the line is short anyway 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. This is a copy from the documentation for BTPROTO_SCO. I do not want to diverge it without reasons. |
||||||||||
On Linux it accepts a tuple ``(device_id,)`` where ``device_id`` | ||||||||||
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. Is this BSD and Linux-only or are other OSes supported as well? 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. The current doc says "everything else" accepts an integer. 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. In code, it is "other OSes". But I have not found information about any other OSes that support this. Windows is not supported. Until recently, FreeBSD was in "other OSes", but this was a bug (see #131668). 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. Can we add an |
||||||||||
is an integer specifying the number of the Bluetooth device. | ||||||||||
serhiy-storchaka marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
|
||||||||||
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? 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'``) This protocol is not | ||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.