Simple detection for LE910-NA1 modules

Fork of MTS-Cellular by MultiTech

Revision:
78:fc9d2b983744
Parent:
67:7c705fe2acec
diff -r 82c0ec0f73ba -r fc9d2b983744 Cellular/EasyIP.h
--- a/Cellular/EasyIP.h	Tue Jul 28 16:18:45 2015 +0000
+++ b/Cellular/EasyIP.h	Mon Aug 17 21:05:41 2015 +0000
@@ -104,6 +104,31 @@
     */
     virtual Code setApn(const std::string& apn);
     
+    /** Enables GPS.
+    * @returns true if GPS gets or is enabled, false if GPS is not supported.
+    */
+    virtual bool GPSenable();
+
+    /** Disables GPS.
+    * @returns true if GPS gets or is disabled, false if GPS failed to disable.
+    */
+    virtual bool GPSdisable();
+
+    /** Checks if GPS is enabled.
+    * @returns true if GPS is enabled, false if GPS is disabled.
+    */
+    virtual bool GPSenabled();
+        
+    /** Get GPS position.
+    * @returns a string containing the GPS position.
+    */
+    virtual Cellular::gpsData GPSgetPosition();
+
+    /** Check for GPS fix.
+    * @returns true if there is a fix and false otherwise.
+    */
+    virtual bool GPSgotFix();
+        
 private:
     /** Function that sends +++ to the radio to exit data mode
     * returns true if it successfully exits from online mode, else
@@ -126,4 +151,4 @@
 
 }
 
-#endif /* EASYIP_H */
+#endif /* EASYIP_H */
\ No newline at end of file