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. Kind regards, Stefan [1] https://github.com/pybluez/pybluez/blob/master/bluez/btmodule.c#L255 -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019