--- smsdaemon/tester.cpp 2008/06/16 16:41:18 101 +++ smsdaemon/tester.cpp 2008/12/07 15:51:02 142 @@ -6,18 +6,18 @@ #include #include #include -#include "SerialPort.h" +#include "serialport/SerialPort.h" #include "GsmModem.h" #include "Sms.h" -#include "TogPlugin.h" -#include "TrainInfo.h" +#include "plugins/TogPlugin.h" +#include "plugins/TrainInfo.h" #include "util.h" -#include "StatusPlugin.h" +#include "plugins/StatusPlugin.h" #include "SmsPdu.h" using namespace std; - +using namespace Util; void test_sms(GsmModem& modem, int len) { @@ -51,11 +51,21 @@ cout << end << endl; return 0; */ + string start = "hej æøåÆØÅ"; + string mid = str_latin2gsm(start); + string final = str_gsm2latin(mid); + + str_dump (start); + str_dump(mid); + str_dump(final); + + + return 0; DebugGsmModem modem(true); SMS sms; - sms.sender="1234"; - sms.message="status"; + sms.SetSender("1234"); + sms.SetMessage("status"); StatusPlugin status; status.Execute(modem,sms);