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

Diff of /smsdaemon/tester.cpp

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

revision 149 by torben, Sun Dec 7 20:58:41 2008 UTC revision 188 by torben, Mon Dec 15 13:27:53 2008 UTC
# Line 9  Line 9 
9  #include "serialport/SerialPort.h"  #include "serialport/SerialPort.h"
10    
11  #include "DebugTransceiver.h"  #include "DebugTransceiver.h"
12    #include "SmsToolTransceiver.h"
13    #include "plugins/HostStatusPlugin.h"
14  #include "Sms.h"  #include "Sms.h"
15  #include "plugins/TogPlugin.h"  #include "plugins/TogPlugin.h"
16  #include "plugins/TrainInfo.h"  #include "plugins/TrainInfo.h"
17  #include "util.h"  #include "Util.h"
18  #include "plugins/StatusPlugin.h"  #include "plugins/StatusPlugin.h"
19    #include "plugins/WeatherPlugin.h"
20  #include "SmsPdu.h"  #include "SmsPdu.h"
21    
22  using namespace std;  using namespace std;
# Line 51  int main() Line 54  int main()
54          cout << end << endl;          cout << end << endl;
55          return 0;          return 0;
56  */  */
57    
58    
59            DebugTransceiver trans(true);
60            WeatherPlugin pl;
61    
62            SMS sms;
63    
64            pl.Execute(trans,sms);
65    
66    
67    
68            return 0;
69          string start = "hej ������";          string start = "hej ������";
70          string mid = str_latin2gsm(start);          string mid = str_latin2gsm(start);
71          string final = str_gsm2latin(mid);          string final = str_gsm2latin(mid);
# Line 62  int main() Line 77  int main()
77    
78          return 0;          return 0;
79    
         DebugTransceiver modem(true);  
         SMS sms;  
         sms.SetSender("1234");  
         sms.SetMessage("status");  
         StatusPlugin status;  
         status.Execute(modem,sms);  
   
         return 0;  
80  /*  /*
81      SerialPort port("/dev/ttyS1" );      SerialPort port("/dev/ttyS1" );
82      port.Open( SerialPort::BAUD_9600,      port.Open( SerialPort::BAUD_9600,

Legend:
Removed from v.149  
changed lines
  Added in v.188

  ViewVC Help
Powered by ViewVC 1.1.20