--- smsdaemon/tester.cpp 2008/06/09 18:15:53 26 +++ smsdaemon/tester.cpp 2008/06/11 21:18:04 60 @@ -1,19 +1,95 @@ /* using http://sourceforge.net/projects/libserial/ + * */ #include #include +#include #include "SerialPort.h" + #include "GsmModem.h" #include "Sms.h" +#include "TogPlugin.h" +#include "TrainInfo.h" +#include "util.h" + +#include "SmsPdu.h" using namespace std; +void test_sms(GsmModem& modem, int len) +{ + cout << "----- test_sms( " << len << " ) ------- " << endl; + + string msg = Util::str_formatint(len); + msg.append(len - msg.length(), '-'); + + vector pdu = SmsPdu::CreateSmsPdu("4522337617", msg, true); + + for (unsigned int i=0; i trains = GetTrainInfo("BJ","Bjerringbro"); + + for (unsigned i=0; i