--- smsdaemon/tester.cpp 2008/06/12 18:54:24 68 +++ smsdaemon/tester.cpp 2008/06/13 06:38:43 69 @@ -42,11 +42,13 @@ int main() { - vector temp = SmsPdu::Encode7to8bit("Dette er en test af encode"); - cout << SmsPdu::HexformatVector(temp) << endl; + string pdu = "06915404950000040A91542233677100008060211202528009AB61F3C8D481622C"; - string result = SmsPdu::Decode8to7bit(temp); - cout << result << endl; + SMS sms = SmsPdu::ParseSmsPdu(pdu); + + cout << "Sender " << sms.sender << endl; + cout << "Time " << sms.timestamp << endl; + cout << "Msg. " << sms.message << endl; return 0;