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

Diff of /smsdaemon/tester.cpp

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

revision 158 by torben, Mon Dec 8 21:49:49 2008 UTC revision 185 by torben, Mon Dec 15 09:10:05 2008 UTC
# Line 10  Line 10 
10    
11  #include "DebugTransceiver.h"  #include "DebugTransceiver.h"
12  #include "SmsToolTransceiver.h"  #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"
# Line 53  int main() Line 54  int main()
54          return 0;          return 0;
55  */  */
56    
         SmsToolTransceiver trans;  
57    
58          trans.ReadSms();          DebugTransceiver trans(true);
59            HostStatusPlugin pl;
60    
61            SMS sms;
62    
63            pl.Execute(trans,sms);
64    
65    
66    
67          return 0;          return 0;
68          string start = "hej ������";          string start = "hej ������";
# Line 69  int main() Line 76  int main()
76    
77          return 0;          return 0;
78    
         DebugTransceiver modem(true);  
         SMS sms;  
         sms.SetSender("1234");  
         sms.SetMessage("status");  
         StatusPlugin status;  
         status.Execute(modem,sms);  
   
         return 0;  
79  /*  /*
80      SerialPort port("/dev/ttyS1" );      SerialPort port("/dev/ttyS1" );
81      port.Open( SerialPort::BAUD_9600,      port.Open( SerialPort::BAUD_9600,

Legend:
Removed from v.158  
changed lines
  Added in v.185

  ViewVC Help
Powered by ViewVC 1.1.20