Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas
Diff: Cellular/UIP.h
- Revision:
- 56:43205bd2752a
- Parent:
- 53:1aee5fe47adb
- Child:
- 66:8c55e2bf7270
--- a/Cellular/UIP.h Mon Aug 11 21:01:50 2014 +0000 +++ b/Cellular/UIP.h Wed Aug 13 16:46:10 2014 +0000 @@ -77,17 +77,11 @@ // TCP and UDP Socket related commands // For behavior of the following methods refer to IPStack.h documentation - virtual bool bind(unsigned int port); virtual bool open(const std::string& address, unsigned int port, Mode mode); - virtual bool isOpen(); virtual bool close(); virtual int read(char* data, int max, int timeout = -1); virtual int write(const char* data, int length, int timeout = -1); - virtual unsigned int readable(); - virtual unsigned int writeable(); 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 * @@ -96,28 +90,6 @@ */ 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 - * will receive back every command you send. - * - * @param state if true echo will be turned off, otherwise it will be turned on. - * @returns the standard AT Code enumeration. - */ - 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, - * this class must process all read and write data on the socket to guard the special - * escape character used to close an open socket connection. It is recommened that you - * use the default of true unless the overhead of these operations is too significant. - * If set to false, socket must be closed using physical pin signals rather than through - * the use of the ETX data character - * - * @param enabled set to true if you want the socket closeable, otherwise false. The default - * is true. - * @returns the standard AT Code enumeration. - */ - virtual Code setSocketCloseable(bool enabled = true); //ETX closes socket (ETX and DLE in payload are escaped with DLE) }; }