ublox-cellular-base_mno

Revision:
29:8a38f91009ad
Parent:
26:e4e444cc7b14
--- a/UbloxCellularBase.h	Mon Aug 05 11:55:52 2019 +0500
+++ b/UbloxCellularBase.h	Mon Aug 26 14:55:37 2019 +0500
@@ -21,6 +21,12 @@
 #include "ubloxATCmdParser.h"
 #include "FileHandle.h"
 
+#ifdef TARGET_UBLOX_C030_R410M
+#define MAX_NUM_PROFILES 12 //ref to enum MNOProfile
+#elif TARGET_UBLOX_C030_R412M
+#define MAX_NUM_PROFILES 7
+#endif
+
 /**********************************************************************
  * CLASSES
  **********************************************************************/
@@ -232,14 +238,17 @@
         SW_DEFAULT = 0,
         SIM_ICCID = 1,
         ATT = 2,
-        VERIZON = 3,
-        TELSTRA = 4,
         TMO = 5,
-        CT = 6,
         VODAFONE = 19,
-        TELUS = 21,
         DT = 31,
         STANDARD_EU = 100
+#ifdef TARGET_UBLOX_C030_R410M
+        , VERIZON = 3,
+        TELSTRA = 4,
+        CT = 6,
+        SPRINT = 8,
+        TELUS = 21
+#endif
     } MNOProfile;
 
     #if MBED_CONF_UBLOX_CELL_DEFAULT_MNO_PROFILE
@@ -252,7 +261,8 @@
      * User can also specify profile in mbed_lib.json file and call set_mno_profile without any arguments.
      *
      * Note: MNO profile should only be set in detached state and a reboot is required for settings to take effect
-     *
+     * Note 2: ref to UBX-17003787 B.5, setting MNO profile can change other parameters such as PSM, Band mask, URAT etc.
+     *         Application must always set a profile first and if required, change parameters afterwards.
      * @param profile MNO profile to use
      * @return    true if operation was successful, false if there was an error
      */
@@ -697,7 +707,7 @@
      */
     bool initialise_sim_card();
 
-#ifdef TARGET_UBLOX_C030_R412M
+#ifdef TARGET_UBLOX_C030_R41XM
     /** Converts the given uint to binary string. Fills the given str starting from [0] with the number of bits defined by bit_cnt
      *  For example uint_to_binary_string(9, str, 10) would fill str "0000001001"
      *  For example uint_to_binary_string(9, str, 3) would fill str "001"