Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MTS-Cellular by
Diff: Cellular/EasyIP.h
- Revision:
- 78:fc9d2b983744
- Parent:
- 67:7c705fe2acec
--- 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
