Library driver for the u-blox SARA-N200 NB-IoT modem
Dependents: sara-n200-hello-mqtt-sn
Diff: sara-n2.cpp
- Revision:
- 2:9b9276791c59
- Parent:
- 0:87f4169aba8e
--- a/sara-n2.cpp Tue Aug 21 16:38:20 2018 +0200 +++ b/sara-n2.cpp Wed Aug 22 16:37:03 2018 +0200 @@ -19,6 +19,8 @@ mTimer.start(); mElapsed = mTimer.read_ms(); *mReset = 0; + mSIMserial[0] = 0; + mIMEA[0] = 0; //mCMD.debug_on(1); mCMD.set_timeout(500); @@ -109,6 +111,7 @@ break; TRACE("IMEA: %s\n", model); + strcpy(mIMEA, model); mState = MODEM_SIM_PIN; } @@ -121,6 +124,7 @@ break; TRACE("SIM: %s\n", SIMID); + strcpy(mSIMserial, SIMID); // mCMD.send("AT+CFUN=1"); // if(!mCMD.recv("OK"))