EEN for Chris
Fork of MTS-Cellular by
Revision 32:7d5581159bed, committed 2014-07-15
- Comitter:
- Vanger
- Date:
- Tue Jul 15 20:37:08 2014 +0000
- Parent:
- 31:529db15abda7
- Child:
- 33:3b6f3904dde0
- Commit message:
- Set EasyIP to initialize with AT+IFC=2,2 command to enable flow control, under EasyIP.cpp; All tests under dotests() passed, library should be complete.
Changed in this revision
Cellular/EasyIP.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;