17 |
#include "SmsPdu.h" |
#include "SmsPdu.h" |
18 |
|
|
19 |
using namespace std; |
using namespace std; |
20 |
|
using namespace Util; |
21 |
|
|
22 |
void test_sms(GsmModem& modem, int len) |
void test_sms(GsmModem& modem, int len) |
23 |
{ |
{ |
51 |
cout << end << endl; |
cout << end << endl; |
52 |
return 0; |
return 0; |
53 |
*/ |
*/ |
54 |
|
string start = "hej æøåÆØÅ"; |
55 |
|
string mid = str_latin2gsm(start); |
56 |
|
string final = str_gsm2latin(mid); |
57 |
|
|
58 |
|
str_dump (start); |
59 |
|
str_dump(mid); |
60 |
|
str_dump(final); |
61 |
|
|
62 |
|
|
63 |
|
return 0; |
64 |
|
|
65 |
DebugGsmModem modem(true); |
DebugGsmModem modem(true); |
66 |
SMS sms; |
SMS sms; |
67 |
sms.sender="1234"; |
sms.SetSender("1234"); |
68 |
sms.message="status"; |
sms.SetMessage("status"); |
69 |
StatusPlugin status; |
StatusPlugin status; |
70 |
status.Execute(modem,sms); |
status.Execute(modem,sms); |
71 |
|
|