EthernetNetIf Compatibility.
Dependents: XBeeWiFi_SPI_example
Fork of NetServicesSource by
Diff: if/gprsmodule/GPRSModuleNetIf.h
- Revision:
- 9:c79fa4034f5b
- Parent:
- 5:dd63a1e02b1b
--- a/if/gprsmodule/GPRSModuleNetIf.h Wed Jul 28 12:45:32 2010 +0000 +++ b/if/gprsmodule/GPRSModuleNetIf.h Thu Aug 05 14:32:43 2010 +0000 @@ -26,23 +26,25 @@ #include "mbed.h" -#include "if/net/net.h" +#include "core/net.h" #include "if/ppp/PPPNetIf.h" #include "drv/gprs/GPRSModem.h" -#include "drv/gprsmodule/GPRSModule.h" class GPRSModuleNetIf : protected PPPNetIf { public: - GPRSModuleNetIf(PinName tx, PinName rx, PinName pwrSetPin, PinName pwrMonPin, int baud = 115200); + GPRSModuleNetIf(PinName tx, PinName rx, int baud = 115200); virtual ~GPRSModuleNetIf(); PPPErr connect(const char* apn = NULL, const char* userId = NULL, const char* password = NULL); //Connect using GPRS PPPErr disconnect(); +protected: + virtual bool setOn() = 0; //True on success + virtual bool setOff() = 0; //True on success + private: - GPRSModule m_module; Serial m_serial; };