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.h
- Revision:
- 43:3cacf019ed7d
- Parent:
- 40:14342c4de476
- Parent:
- 41:81d035fb0b6a
- Child:
- 56:e5e5351f14b3
diff -r 2e90ccaa2d69 -r 3cacf019ed7d cellular/Cellular.h
--- a/cellular/Cellular.h Thu Dec 19 21:24:36 2013 +0000
+++ b/cellular/Cellular.h Thu Dec 19 21:27:25 2013 +0000
@@ -189,7 +189,7 @@
virtual bool isOpen();
virtual bool close();
virtual int read(char* data, int max, int timeout = -1);
- virtual int write(char* data, int length, int timeout = -1);
+ virtual int write(const char* data, int length, int timeout = -1);
virtual unsigned int readable();
virtual unsigned int writeable();
@@ -282,7 +282,7 @@
* @param the DNS server address as a string in form xxx.xxx.xxx.xxx.
* @returns the standard AT Code enumeration.
*/
- Code setDns(const std::string& address);
+ Code setDns(const std::string& primary, const std::string& secondary = "0.0.0.0");
/** This method is used test network connectivity by pinging a server.
*
uIP Socket Modem Shield (Outdated - see below)