42 |
|
|
43 |
int main() |
int main() |
44 |
{ |
{ |
45 |
vector<unsigned char> temp = SmsPdu::Encode7to8bit("Dette er en test af encode"); |
string pdu = "06915404950000040A91542233677100008060211202528009AB61F3C8D481622C"; |
|
cout << SmsPdu::HexformatVector(temp) << endl; |
|
46 |
|
|
47 |
string result = SmsPdu::Decode8to7bit(temp); |
SMS sms = SmsPdu::ParseSmsPdu(pdu); |
48 |
cout << result << endl; |
|
49 |
|
cout << "Sender " << sms.sender << endl; |
50 |
|
cout << "Time " << sms.timestamp << endl; |
51 |
|
cout << "Msg. " << sms.message << endl; |
52 |
|
|
53 |
return 0; |
return 0; |
54 |
|
|