74 |
if ( (now-start) > 10 ) |
if ( (now-start) > 10 ) |
75 |
{ |
{ |
76 |
Common::instance()->logMessage( string("GsmModem::Command time out --") + command); |
Common::instance()->logMessage( string("GsmModem::Command time out --") + command); |
77 |
|
Common::instance()->logMessage( string("Modem responded: ") + Util::str_trim(response) ); |
78 |
_timeout = true; |
_timeout = true; |
79 |
break; |
break; |
80 |
} |
} |
203 |
} |
} |
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
void DebugGsmModem::SendSms(std::string to, std::string message, bool allowMultipart) |
209 |
|
{ |
210 |
|
_to=to; |
211 |
|
_message = message; |
212 |
|
_multipart = allowMultipart; |
213 |
|
|
214 |
|
if (_print) |
215 |
|
{ |
216 |
|
cout << "DebugGsmModem::SendSms --------------" << endl; |
217 |
|
cout << "To: " << to << endl;; |
218 |
|
cout << "Message: " << message << endl; |
219 |
|
cout << "Multipart: " << allowMultipart << endl; |
220 |
|
|
221 |
|
} |
222 |
|
} |
223 |
|
|