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

Diff of /smsdaemon/GsmModem.cpp

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

revision 49 by torben, Wed Jun 11 10:21:47 2008 UTC revision 50 by torben, Wed Jun 11 10:31:42 2008 UTC
# Line 132  void GsmModem::SendSms(string to, string Line 132  void GsmModem::SendSms(string to, string
132    
133          Command(line1,"> ");          Command(line1,"> ");
134    
135            if (message.length() > 160)
136            {
137                    message = message.substr(0,160);
138                    Common::instance()->logMessage( "Trunkating message! ");
139            }
140    
141          message.append("\032"); // \032 == Ctrl+Z          message.append("\032"); // \032 == Ctrl+Z
142    
143          Command( message.substr(0,160) ); //In textmode limit to 160 bytes          Command( message ); //In textmode limit to 160 bytes
144    
145    
146          Util::Sleep(50); //Give the modem some time to send the sms and be ready again          Util::Sleep(50); //Give the modem some time to send the sms and be ready again

Legend:
Removed from v.49  
changed lines
  Added in v.50

  ViewVC Help
Powered by ViewVC 1.1.20