Simple detection for LE910-NA1 modules

Fork of MTS-Cellular by MultiTech

Revision:
31:529db15abda7
Parent:
27:ec44d5a9544f
Child:
52:2cb58398a4f9
--- a/Cellular/Cellular.h	Wed Jul 09 14:44:48 2014 +0000
+++ b/Cellular/Cellular.h	Mon Jul 14 21:11:50 2014 +0000
@@ -197,8 +197,8 @@
     */
     virtual bool init(MTSBufferedIO* io);
     
-    /**
-    *
+    /** Sets up the physical connection pins
+    *   (DTR,DCD, and RESET obviously)
     */
     bool configureSignals(unsigned int DCD = NC, unsigned int DTR = NC, unsigned int RESET = NC);
 
@@ -234,7 +234,7 @@
     * @param the APN as a string.
     * @returns the standard AT Code enumeration.
     */
-    virtual Code setApn(const std::string& apn);
+    virtual Code setApn(const std::string& apn)=0;
 
     /** This method is used to set the DNS which enables the use of URLs instead
     * of IP addresses when making a socket connection.
@@ -322,6 +322,13 @@
     * @returns the enumeration name as a string.
     */
     static std::string getRadioNames(Radio radio);
+    /** A method for changing the echo commands from radio.
+    * @param state Echo mode is off (an argument of 1 turns echos off, anything else turns echo on)
+    * @returns standard Code enumeration
+    */
+    virtual Code echo(bool state)=0; //Implemented the same way in both UIP and EasyIP, 
+                                        //and thus could be moved to cellular class
+    virtual Code setSocketCloseable(bool enabled)=0;
 
 protected:
     MTSBufferedIO* io; //IO interface obect that the radio is accessed through.