예제 #1
0
파일: protocol.py 프로젝트: achiang/wader
 def send_sms(self, pdu, pdu_len):
     """Sends the given pdu and returns the index"""
     cmd = ATCmd('AT+CMGS=%d' % pdu_len, name='send_sms', eol='\r')
     cmd.splitcmd = '%s\x1a' % pdu
     return self.queue_at_cmd(cmd)
예제 #2
0
파일: protocol.py 프로젝트: achiang/wader
 def save_sms(self, pdu, pdu_len):
     """Returns the index where ``pdu`` was stored"""
     cmd = ATCmd('AT+CMGW=%s' % pdu_len, name='save_sms', eol='\r')
     cmd.splitcmd = '%s\x1a' % pdu
     return self.queue_at_cmd(cmd)