Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MTS-Cellular by
Diff: Cellular/UIP.cpp
- Revision:
- 9:1a03e3f3e7fe
- Parent:
- 8:2d7259d244d1
- Child:
- 10:c188cc05aed5
--- a/Cellular/UIP.cpp Wed May 21 15:28:37 2014 -0500 +++ b/Cellular/UIP.cpp Wed May 21 15:39:35 2014 -0500 @@ -7,11 +7,11 @@ using namespace mts; UIP::UIP() -: dcd(NULL), - dtr(NULL), - resetLine(NULL) { io = NULL; + dcd = NULL; + dtr = NULL; + resetLine = NULL; echoMode = true; pppConnected = false; mode = TCP; @@ -46,26 +46,6 @@ return true; } -bool UIP::configureSignals(PinName DCD, PinName DTR, PinName RESET) -{ - //Set DCD - The radio will raise and lower this line - if (DCD != NC) { - dcd = new DigitalIn(DCD); - } - /* Set DTR - This line should be lowered when we want to talk to the radio and raised when we're done - * for now we will lower it in the constructor and raise it in the destructor. - */ - if (DTR != NC) { - dtr = new DigitalOut(DTR); - dtr->write(0); - } - //Set RESET - Set the hardware reset line to the radio - if (RESET != NC) { - resetLine = new DigitalOut(RESET); - } - return true; -} - bool UIP::connect() { //Check if socket is open