I am new in programming in python so I would like to ask you how can I send AT commands using btsocket or which library use to do it.
I wrote this:
but it dose not work. Can you help me?
channel = btsocket.bt_rfcomm_get_available_server_channel(server)
btsocket.bt_advertise_service(u"btchat", server, True, btsocket.RFCOMM)
btsocket.set_security(server, btsocket.AUTH | btsocket.AUTHOR)
Thanks in advance