Tuesday, January 4, 2011

Send sms from PC with bluetooth sockets

import socket
import messaging

s=socket.socket(socket.AF_BT,socket.SOCK_STREAM)
s.connect(("00:19:7e:d8:ec:4b", 1))

msg=s.recv(160)  # SMS limit is 160 chars
messaging.sms_send('9978453256', msg)

1 comment:

  1. Thanks for sharing as it is an excellent post would love to read your future post
    send sms from pc

    ReplyDelete