Fork of MTS-Cellular by
Diff: Cellular/EasyIP.cpp
- Revision:
- 32:7d5581159bed
- Parent:
- 31:529db15abda7
- Child:
- 33:3b6f3904dde0
--- a/Cellular/EasyIP.cpp Mon Jul 14 21:11:50 2014 +0000 +++ b/Cellular/EasyIP.cpp Tue Jul 15 20:37:08 2014 +0000 @@ -1,15 +1,9 @@ -// This is a template from UIP.cpp for now, will modify code and implement it as I go - - - #include "mbed.h" #include "EasyIP.h" #include "MTSText.h" #include "MTSLog.h" #include "CellUtils.h" - - using namespace mts; bool EasyIP::sendEscapeCommand() @@ -163,6 +157,10 @@ } logDebug("radio type: %s", Cellular::getRadioNames(type).c_str()); + //Turns on the HW flow control, equiv. to AT&K + if(sendBasicCommand("AT+IFC=2,2", 2000) != MTS_SUCCESS) { + logWarning("Failed to set flow control to radio"); + } return true; } @@ -706,7 +704,7 @@ return local_address; } -//Turns off echo when it receives a 1, turns on when it receives anything else +//Turns off echo when it receives a true, turns on when it receives false Code EasyIP::echo(bool state) { Code code;