fork

Revision:
7:3b2ca10cc23a
Parent:
6:63dad754c267
Child:
10:ba18f4418ee8
--- a/UbloxATCellularInterface.cpp	Thu Jun 15 14:04:26 2017 +0100
+++ b/UbloxATCellularInterface.cpp	Fri Jun 30 13:29:19 2017 +0100
@@ -225,12 +225,12 @@
  **********************************************************************/
 
 // Get the next set of credentials, based on IMSI.
-void UbloxATCellularInterface::get_next_credentials(const char * config)
+void UbloxATCellularInterface::get_next_credentials(const char ** config)
 {
-    if (config) {
-        _apn    = _APN_GET(config);
-        _uname  = _APN_GET(config);
-        _pwd    = _APN_GET(config);
+    if (*config) {
+        _apn    = _APN_GET(*config);
+        _uname  = _APN_GET(*config);
+        _pwd    = _APN_GET(*config);
     }
 
     _apn    = _apn     ?  _apn    : "";
@@ -364,7 +364,7 @@
             // Attempt to connect
             do {
                 // Set up APN and IP protocol for PDP context
-                get_next_credentials(config);
+                get_next_credentials(&config);
                 _auth = (*_uname && *_pwd) ? _auth : NSAPI_SECURITY_NONE;
                 if ((_dev_info.dev != DEV_TOBY_L2) && (_dev_info.dev != DEV_MPCI_L2)) {
                     success = activate_profile(_apn, _uname, _pwd, _auth);