2 |
#include <stdlib.h> |
#include <stdlib.h> |
3 |
|
|
4 |
#include "daemon.h" |
#include "daemon.h" |
5 |
#include "common.h" |
#include "Common.h" |
6 |
#include "Logger.h" |
#include "Logger.h" |
7 |
|
|
8 |
#include "ModemTransceiver.h" |
#include "ModemTransceiver.h" |
32 |
Common* cmn = Common::instance(); |
Common* cmn = Common::instance(); |
33 |
ConfigFile* config = cmn->GetConfigfile(); |
ConfigFile* config = cmn->GetConfigfile(); |
34 |
|
|
35 |
port = new SerialPort ( config->GetValue("smsdaemon","serialport") ); |
port = new SerialPort ( config->GetValue("gsmmodem","serialport") ); |
36 |
try |
try |
37 |
{ |
{ |
38 |
port->Open( SerialPort::BAUD_9600, |
port->Open( SerialPort::BAUD_9600, |