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:
83:9813f9b8ee68
Parent:
51:d22d3d87391f
Child:
86:186bbf974c7c
--- a/io/MTSSerial.h	Fri Dec 27 15:41:24 2013 +0000
+++ b/io/MTSSerial.h	Fri Dec 27 15:55:35 2013 +0000
@@ -4,8 +4,9 @@
 #include "mbed.h"
 #include "MTSBufferedIO.h"
 
-namespace mts {
-    
+namespace mts
+{
+
 /** This class derives from MTSBufferedIO and provides a buffered wrapper to the
 * standard mbed Serial class. Since it depends only on the mbed Serial class for
 * accessing serial data, this class is inherently portable accross different mbed
@@ -47,8 +48,10 @@
     */
     void format(int bits=8, SerialBase::Parity parity=mbed::SerialBase::None, int stop_bits=1);
 
+protected:
+    Serial* serial; // Internal mbed Serial object
+
 private:
-    Serial* serial; // Internal mbed Serial object
     int writeSize; // Amount of data to write based on buffer size
     char* if_name; // Name of the interface