Bluetooth connection error
I'm trying to connect through Bluetooth using the following code snippet I found in this forum:
[code]
from socket import *
s = socket(AF_BT, SOCK_STREAM)
p = bt_rfcomm_get_available_server_channel(s._sock)
s.bind(("", p))
bt_advertise_service( u"asdf", s._sock, True, RFCOMM )
set_security(s._sock, AUTHOR)
s.listen(1)
c = s.accept()
[/code]
But it results in:
e32socket.bt_advertise(name,_unwrap(socket),flag,class_)
Attribute error: 'module' object has no attribute 'bt_advertise'
Re: Bluetooth connection error
[QUOTE][i]Originally posted by bercobeute [/i]
[B]I'm trying to connect through Bluetooth using the following code snippet I found in this forum:
[code]
from socket import *
s = socket(AF_BT, SOCK_STREAM)
p = bt_rfcomm_get_available_server_channel(s._sock)
s.bind(("", p))
bt_advertise_service( u"asdf", s._sock, True, RFCOMM )
set_security(s._sock, AUTHOR)
s.listen(1)
c = s.accept()
[/code]
But it results in:
e32socket.bt_advertise(name,_unwrap(socket),flag,class_)
Attribute error: 'module' object has no attribute 'bt_advertise' [/B][/QUOTE]
Thanks for the report, will fix. I guess this just shows that there is no such thing as code that is too simple to test...
* puts brown paper bag on head *