Simple detection for LE910-NA1 modules
Fork of MTS-Cellular by
Diff: Cellular/UIP.h
- Revision:
- 31:529db15abda7
- Parent:
- 27:ec44d5a9544f
- Child:
- 33:3b6f3904dde0
--- a/Cellular/UIP.h Wed Jul 09 14:44:48 2014 +0000 +++ b/Cellular/UIP.h Mon Jul 14 21:11:50 2014 +0000 @@ -75,6 +75,9 @@ virtual bool ping(const std::string& address = "8.8.8.8"); virtual std::string getDeviceIP(); virtual bool setDeviceIP(std::string address = "DHCP"); + + /** A method for setting the APN */ + virtual Code setApn(const std::string& apn); /** A method for configuring command ehco capability on the radio. This command * sets whether sent characters are echoed back from the radio, in which case you @@ -83,7 +86,7 @@ * @param state if true echo will be turned off, otherwise it will be turned on. * @returns the standard AT Code enumeration. */ - Code echo(bool state); + virtual Code echo(bool state); /** This method can be used to trade socket functionality for performance. * In order to enable a socket connection to be closed by the client side programtically, @@ -95,7 +98,7 @@ * is true. * @returns the standard AT Code enumeration. */ - Code setSocketCloseable(bool enabled = true); //ETX closes socket (ETX and DLE in payload are escaped with DLE) + virtual Code setSocketCloseable(bool enabled = true); //ETX closes socket (ETX and DLE in payload are escaped with DLE) }; }