A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
68:c490e4a51778
Parent:
62:83ccef1e94db
Child:
71:82205735732b
--- a/cellular/Cellular.h	Mon Dec 23 19:55:31 2013 +0000
+++ b/cellular/Cellular.h	Tue Dec 24 01:15:44 2013 +0000
@@ -345,7 +345,7 @@
     * carriage return (CR).
     * @returns all data received from the radio after the command as a string.
     */
-    std::string sendCommand(std::string command, int timeoutMillis, ESC_CHAR esc = CR);
+    std::string sendCommand(const std::string& command, unsigned int timeoutMillis, ESC_CHAR esc = CR);
 
     /** A method for sending a basic AT command to the radio. A basic AT command is
     * one that simply has a response of either OK or ERROR without any other information.
@@ -357,7 +357,7 @@
     * carriage return (CR).
     * @returns the standard AT Code enumeration.
     */
-    Code sendBasicCommand(std::string command, int timeoutMillis, ESC_CHAR esc = CR);
+    Code sendBasicCommand(const std::string& command, unsigned int timeoutMillis, ESC_CHAR esc = CR);
 
     /** A method for testing command access to the radio.  This method sends the
     * command "AT" to the radio, which is a standard radio test to see if you