Ejemplo n.º 1
0
        public void Delete(SmsDeliverMessage message)
        {
            for (int x = 0; x < message.MessageLocation.Count; x++)
            {
                // select storage
                WriteCommandExpectResponse("AT+CPMS=" + message.MessageLocation[x].StorageName, "\rOK\r");

                // delete message
                WriteCommandExpectResponse("AT+CMGD=" + message.MessageLocation[x].MessageIndex, "\rOK\r");
            }
        }
Ejemplo n.º 2
0
 public void Delete(SmsDeliverMessage message) {
     for (int x = 0; x < message.MessageLocation.Count; x++) {
         // select storage
         WriteCommandExpectResponse("AT+CPMS=" + message.MessageLocation[x].StorageName, "\rOK\r");
     
         // delete message
         WriteCommandExpectResponse("AT+CMGD=" + message.MessageLocation[x].MessageIndex, "\rOK\r");
     }
 }