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.
Diff: UbloxCellularBase.h
- Revision:
- 25:e67d3d9d2e7e
- Parent:
- 24:e26a6ab0dd75
- Child:
- 26:e4e444cc7b14
--- a/UbloxCellularBase.h Tue May 28 15:39:51 2019 +0500
+++ b/UbloxCellularBase.h Wed May 29 12:39:28 2019 +0500
@@ -18,7 +18,7 @@
#include "mbed.h"
#include "mbed_toolchain.h" // for MBED_DEPRECATED
-#include "ATCmdParser.h"
+#include "ubloxATCmdParser.h"
#include "FileHandle.h"
/**********************************************************************
@@ -253,6 +253,23 @@
* @return true if operation was successful, false if there was an error
*/
bool get_mno_profile(int *profile);
+
+ /** Enable or disable the UPSV Power Saving Mode.
+ *
+ * @param idle_mode_value 1: enable idle mode
+ * 0: disable idle mode
+ * @return true if successful, otherwise false.
+ */
+ bool set_idle_mode(bool enable = false);
+
+ /** Queries the modem for idle mode status.
+ *
+ * @param status pointer to variable that can hold the value for idle mode status
+ * 1: enabled
+ * 0: disabled
+ * @return true if successful, otherwise false.
+ */
+ bool get_idle_mode(int *status);
#endif
/** Set Radio Access Technology on modem.
@@ -458,7 +475,11 @@
/** Point to the instance of the AT parser in use.
*/
+#ifdef TARGET_UBLOX_C030_R41XM
+ UbloxATCmdParser *_at;
+#else
ATCmdParser *_at;
+#endif
/** The current AT parser timeout value.
*/