GPRS PPP control class. More...
#include <GprsPpp.h>
Static Public Member Functions | |
static bool | start (const char *serialPort, GPRSPPP_PARAMETERS *pParams) |
Start GPRS PPP. | |
static bool | stop () |
Stop GPRS PPP. | |
static bool | isRunning () |
Check GPRS PPP status. |
GPRS PPP control class.
Implements a number of static functions to simplify management of the GPRS PPP daemon. The GPRS PPP daemon (pppd) must be bound to a certain serial port, either physical or virtual. The GPRS modem serial port must be used as the physical port. Alternatively, GSM 07.10 multiplexer may provide a virtual port.
bool GprsPpp::isRunning | ( | ) | [static] |
Check GPRS PPP status.
bool GprsPpp::start | ( | const char * | serialPort, | |
GPRSPPP_PARAMETERS * | pParams | |||
) | [static] |
Start GPRS PPP.
Starts the GPRS PPP daemon (pppd). After the call returns successfully, full IP connectivity should be available in the system via the ppp0 network interface.
serialPort | Points to a null-terminated string containing the serial port name. The port may be either physical or virtual. | |
pParams | Points to GPRS PPP configuration structure. |
bool GprsPpp::stop | ( | ) | [static] |
Stop GPRS PPP.
Stops the GPRS PPP daemon (pppd), terminates PPP mode and releases the selected serial port.