I'm trying to connect through Bluetooth using the following code snippet I found in this forum:
But it results in: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()
e32socket.bt_advertise(name,_unwrap(socket),flag,class_)
Attribute error: 'module' object has no attribute 'bt_advertise'

Reply With Quote

