On 12/07/16 15:32, ammar jallawi wrote:
> # Simple TCP client and server that send and receive 16 octets
> import socket, sys
> s = socket.socket(socket.AF_BLUETOOTH, socket.SO_REUSEADDR,
> socket.BTPROTO_RFCOMM)
>
> and getting this error:
>
> AttributeError: 'module' object has no
Hi
I am running this code on windows:
# Simple TCP client and server that send and receive 16 octets
import socket, sys
s = socket.socket(socket.AF_BLUETOOTH, socket.SO_REUSEADDR,
socket.BTPROTO_RFCOMM)
#HOST = sys.argv.pop() if len(sys.argv) == 3 else '127.0.0.1'
HOST = 'DC:FE:07:4D:BF:2F'