--- smsdaemon/tester.cpp 2008/06/11 12:57:26 54 +++ smsdaemon/tester.cpp 2008/06/11 21:18:04 60 @@ -1,25 +1,63 @@ /* using http://sourceforge.net/projects/libserial/ + * */ #include #include #include -/*#include "SerialPort.h" -*/ +#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");