httpServer Library with Ethernet

Dependents:   Simple_HTTP_JSON HTTPWebServer-WIZwiki-W7500 HTTPWebServer-WIZwiki-W750023 WIZ750SR_test

Fork of httpServer by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
hjjeon
Date:
Fri Feb 12 07:39:47 2016 +0000
Parent:
3:87bec0b34de7
Commit message:
Add code about FsHandler of get method for students example

Changed in this revision

Handler/FsHandler.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Handler/FsHandler.cpp	Mon Nov 16 23:55:29 2015 +0000
+++ b/Handler/FsHandler.cpp	Fri Feb 12 07:39:47 2016 +0000
@@ -72,8 +72,8 @@
     if( std::string::npos != msg.uri.find("get_netinfo.cgi") )
     {
         char buf[256];
-        
-        sprintf(buf, "NetinfoCallback({\"mac\":\"%s\",\"ip\":\"%s\",\"sn\":\"%s\",\"gw\":\"%s\"});"
+                
+        sprintf(buf, "NetinfoCallback({\"mac\":\"%s\",\"ip\":\"%s\",\"sn\":\"%s\",\"gw\":\"%s\",\"temp\":\"%s\"});"
                     ,m_eth_list[0]->getMACAddress(),m_eth_list[0]->getIPAddress(),m_eth_list[0]->getNetworkMask(),m_eth_list[0]->getGateway());
                 
         tcp.send(buf, strlen(buf));