easy connect wnc added to http request with debug mode enabled. traces collected for AT%CGEQOS, AT%MEAS, AT%PCONI
Fork of WncControllerLibrary by
Diff: WncController.cpp
- Revision:
- 32:6512f41ac6f0
- Parent:
- 31:5db38ccccd1d
- Child:
- 33:2958e09ad308
diff -r 5db38ccccd1d -r 6512f41ac6f0 WncController.cpp --- a/WncController.cpp Fri Oct 07 18:36:42 2016 +0000 +++ b/WncController.cpp Mon Oct 10 17:02:24 2016 +0000 @@ -1582,22 +1582,10 @@ return (WNC_AT_CMD_OK == at_send_wnc_cmd("AT", &pRespStr, WNC_QUICK_CMD_TIMEOUT_MS)); // Heartbeat? } -bool WncController::at_power_save_off_wnc(void) -{ - string *pRespStr; - AtCmdErr_e cmdRes = at_send_wnc_cmd("AT%SETCFG=\"pw_nosrvc\",\"none\"", &pRespStr, m_sCmdTimeoutMs); - - if (cmdRes == WNC_AT_CMD_OK) - return (true); - else - return (false); -} - bool WncController::at_init_wnc(bool hardReset) { string * pRespStr; AtCmdErr_e cmdRes; - static bool pwrSaveOnce = false; if (hardReset == true) dbgPuts("Hard Soft Reset!"); @@ -1622,13 +1610,6 @@ cmdRes = at_send_wnc_cmd("AT", &pRespStr, WNC_QUICK_CMD_TIMEOUT_MS); // Heartbeat? - // Altera suggests turning off power save mode and only do it 1 time! - if (pwrSaveOnce == false) { - dbgPuts("Power Saving Mode OFF!"); - pwrSaveOnce = true; - at_power_save_off_wnc(); - } - // If the simple commands are not working, no chance of more complex. // I have seen re-trying commands make it worse. if (cmdRes != WNC_AT_CMD_OK)