Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Files at this revision

API Documentation at this revision

Comitter:
Vanger
Date:
Wed Aug 13 17:13:51 2014 +0000
Parent:
56:43205bd2752a
Child:
58:de5f2c001ab0
Commit message:
Moved enumeration before socket variable in EasyIP.cpp under socketCheck()

Changed in this revision

Cellular/EasyIP.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Cellular/EasyIP.cpp	Wed Aug 13 16:46:10 2014 +0000
+++ b/Cellular/EasyIP.cpp	Wed Aug 13 17:13:51 2014 +0000
@@ -605,9 +605,9 @@
 }
 
 bool EasyIP::socketCheck() {
+    enum SocketStatus {SOCKETCLOSED = 0, SOCKETACTIVEDATA = 1, SOCKETSUSPEND = 2, SOCKETSUSPENDDATA = 3, SOCKETLISTEN = 4, SOCKETINCOMING = 5, ERROR = 9};
     bool status = false;
     int socketInfo = ERROR;
-    enum SocketStatus {SOCKETCLOSED = 0, SOCKETACTIVEDATA = 1, SOCKETSUSPEND = 2, SOCKETSUSPENDDATA = 3, SOCKETLISTEN = 4, SOCKETINCOMING = 5, ERROR = 9};
     std::vector<std::string> params;
     
     //Goes from data mode to command mode