Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.
Dependents: example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more
Diff: UbloxCellularBase.h
- Revision:
- 25:e67d3d9d2e7e
- Parent:
- 24:e26a6ab0dd75
- Child:
- 26:e4e444cc7b14
diff -r e26a6ab0dd75 -r e67d3d9d2e7e UbloxCellularBase.h
--- 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.
*/
u-blox