DUNE: Uniform Navigational Environment  2019.02.1
Transports::GSM::Driver Class Reference

Public Member Functions

 Driver (Tasks::Task *task, SerialPort *uart, const std::string &pin="")
 
 ~Driver (void)
 
void checkMessages (void)
 
void sendSMS (const std::string &number, const std::string &msg, double timeout)
 
bool getBalance (unsigned ussd_code, std::string &balance)
 

Constructor & Destructor Documentation

Transports::GSM::Driver::Driver ( Tasks::Task *  task,
SerialPort *  uart,
const std::string &  pin = "" 
)
inline

Constructor.

Parameters
[in]taskparent task.
[in]uartserial port connected to the ISU.
[in]pinPIN number.
Transports::GSM::Driver::~Driver ( void  )
inline

Destructor.

Member Function Documentation

void Transports::GSM::Driver::checkMessages ( void  )
inline
bool Transports::GSM::Driver::getBalance ( unsigned  ussd_code,
std::string &  balance 
)
inline
void Transports::GSM::Driver::sendSMS ( const std::string &  number,
const std::string &  msg,
double  timeout 
)
inline
Collaboration diagram for Transports::GSM::Driver:
Collaboration graph