/[projects]/smsdaemon/tester.cpp
ViewVC logotype

Diff of /smsdaemon/tester.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 83 by torben, Sun Jun 15 20:45:14 2008 UTC revision 101 by torben, Mon Jun 16 16:41:18 2008 UTC
# Line 13  Line 13 
13  #include "TogPlugin.h"  #include "TogPlugin.h"
14  #include "TrainInfo.h"  #include "TrainInfo.h"
15  #include "util.h"  #include "util.h"
16    #include "StatusPlugin.h"
17  #include "SmsPdu.h"  #include "SmsPdu.h"
18    
19  using namespace std;  using namespace std;
# Line 52  int main() Line 52  int main()
52          return 0;          return 0;
53  */  */
54    
55            DebugGsmModem modem(true);
56            SMS sms;
57            sms.sender="1234";
58            sms.message="status";
59            StatusPlugin status;
60            status.Execute(modem,sms);
61    
62            return 0;
63    /*
64      SerialPort port("/dev/ttyS1" );      SerialPort port("/dev/ttyS1" );
65      port.Open( SerialPort::BAUD_9600,      port.Open( SerialPort::BAUD_9600,
66                          SerialPort::CHAR_SIZE_8,                          SerialPort::CHAR_SIZE_8,
# Line 87  int main() Line 96  int main()
96    
97          }          }
98    
99    */
100  /*  /*
101          vector<PduInfo> pdu = SmsPdu::CreateSmsPdu("4522337617", "Hej med dig, igen", true);          vector<PduInfo> pdu = SmsPdu::CreateSmsPdu("4522337617", "Hej med dig, igen", true);
102          cout << "Len: " << pdu[0].len << endl;          cout << "Len: " << pdu[0].len << endl;

Legend:
Removed from v.83  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.20