Hi all, I have had a closer look at various code bases, including bluez git, pybluez, blueman. Am 21.12.19 um 14:25 schrieb Stefan Brüns:
On Samstag, 21. Dezember 2019 10:08:13 CET Stefan Seyfried wrote:
Am 21.12.19 um 07:19 schrieb Graeme Blackman:
I had a play with the Blue Dot library but it simply throws the exception "AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'", which is not surprising given the earlier comment that AF_BLUETOOTH was removed from Python on openSUSE.
I don't think anything using socket() with AF_BLUETOOTH is advisable.
bluez-test package contains /usr/lib64/bluez/test/test-sap-server that does some RFCOMM stuff, it is using python-pybluez (which apparently does not need AF_BLUETOOTH).
python-pybluez wraps the raw socket itself [1], so it does not depend on AF_BLUETOOTH support in pythons core socket module.
...and this is basically reimplementing the functionality of the rfcomm binary... ;-) Blueman is also more or less doing the same. So if the solution for "what to use instead of /usr/bin/rfcomm" is "implement the same funcitonality in $OTHER_LANGUAGE", then keeping the rfcomm binary seems to be the best choice. I have inquired upstream about this and asked to un-deprecate rfcomm. Let's see what comes out of this discussion. If there is no resolution, I can still patch bluez to "un-deprecate" rfcomm for openSUSE :-) Have fun, seife -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org