/[projects]/smsdaemon/ModemTransceiver.cpp
ViewVC logotype

Diff of /smsdaemon/ModemTransceiver.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 105 by torben, Tue Jun 17 17:47:37 2008 UTC revision 136 by torben, Sun Dec 7 10:15:44 2008 UTC
# Line 8  Line 8 
8  #include <time.h>  #include <time.h>
9    
10    
11  #include "SerialPort.h"  #include "serialport/SerialPort.h"
12    
13  #include "GsmModem.h"  #include "GsmModem.h"
14    
# Line 148  void GsmModem::SendSms(string to, string Line 148  void GsmModem::SendSms(string to, string
148          if (to.at(0) == '+')          if (to.at(0) == '+')
149                  to.erase(0,0);                  to.erase(0,0);
150    
151          vector<PduInfo> pdu_vec = SmsPdu::CreateSmsPdu(to, message, allowMultipart);          vector<PduInfo> pdu_vec = SmsPdu::CreateSmsPdu(to, Util::str_latin2gsm(message), allowMultipart);
152    
153          for (unsigned i=0; i<pdu_vec.size(); ++i)          for (unsigned i=0; i<pdu_vec.size(); ++i)
154          {          {
# Line 156  void GsmModem::SendSms(string to, string Line 156  void GsmModem::SendSms(string to, string
156    
157                  SendSmsPdu(pdu.pdu, pdu.len);                  SendSmsPdu(pdu.pdu, pdu.len);
158          }          }
159            Common::instance()->logMessage( "All PDU's send");
160    
161  }  }
162    

Legend:
Removed from v.105  
changed lines
  Added in v.136

  ViewVC Help
Powered by ViewVC 1.1.20