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.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: cellular/Cellular.cpp
- Revision:
- 123:a84f6b89132b
- Parent:
- 122:5f95f81a8b03
- Child:
- 141:571e0ef6c8dc
diff -r 5f95f81a8b03 -r a84f6b89132b cellular/Cellular.cpp --- a/cellular/Cellular.cpp Thu Jan 02 15:45:52 2014 +0000 +++ b/cellular/Cellular.cpp Thu Jan 02 15:52:46 2014 +0000 @@ -22,6 +22,7 @@ , socketOpened(false) , socketCloseable(true) , local_port(0) + , local_address("") , host_port(0) , dcd(NULL) , dtr(NULL) @@ -548,6 +549,11 @@ } } +std::string Cellular::getDeviceIP() +{ + return local_address; +} + Code Cellular::test() { bool basicRadioComms = false;