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" |
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; |
55 |
return 0; |
return 0; |
56 |
*/ |
*/ |
57 |
|
|
|
SmsToolTransceiver trans; |
|
58 |
|
|
59 |
trans.ReadSms(); |
DebugTransceiver trans(true); |
60 |
|
WeatherPlugin pl; |
61 |
|
|
62 |
|
SMS sms; |
63 |
|
|
64 |
|
pl.Execute(trans,sms); |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
return 0; |
return 0; |
69 |
string start = "hej ������"; |
string start = "hej ������"; |
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, |