First

Dependents:   mbed-os-rest-api-V1-1 mbed-os-rest-api-V1-2 mbed-os-rest-api-V1-2-2

Revision:
1:358fcf86ddab
Parent:
0:b12dd3a065c0
--- a/NetworkManager.h	Mon Oct 08 00:49:06 2018 +0000
+++ b/NetworkManager.h	Fri Dec 21 07:54:04 2018 +0000
@@ -20,6 +20,8 @@
                       "\r\n"                    \
                       HTTP_MESSAGE_BODY "\r\n"
 
+//void CheckConnectServer();
+
 class NetworkManager {
 public:
     NetworkManager();
@@ -27,7 +29,7 @@
     
     /* Define function */
     void SetConfig(char*, char*, char*, int);
-    void ServerInit();
+    bool ServerInit();
     
     bool OpenServer();
     
@@ -45,6 +47,14 @@
     std::string getApiCommand();
     std::string makeResponse(std::string);
     
+    //void CheckConnectServer();
+    //void threadCheckConnectServer();
+    
+    EthernetInterface   eth;
+    TCPServer       srv;
+    TCPSocket       clt_sock;
+    SocketAddress   clt_addr;
+    
 private:
     char*   _ip;
     char*   _gateway;
@@ -63,10 +73,6 @@
     std::string _http_method;
     std::string _api_command;
     
-    EthernetInterface   eth;
-    TCPServer       srv;
-    TCPSocket       clt_sock;
-    SocketAddress   clt_addr;
 };
 
 #endif
\ No newline at end of file