A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.

Dependents:   Smart-WiFly-WebServer WattEye X10Svr SSDP_Server

Revision:
4:f34642902056
Parent:
3:17928786bdb5
Child:
5:c9b27e718054
--- a/SW_HTTPServer.cpp	Mon Jun 24 20:02:01 2013 +0000
+++ b/SW_HTTPServer.cpp	Tue Jun 25 16:37:06 2013 +0000
@@ -312,16 +312,16 @@
 }
 
 
-void HTTPServer::GetRemoteAddr(char * str, int size)
+void HTTPServer::GetRemoteAddr(char * str, int strSize)
 {
     bool res = false;
     char *p;
 
-    if (size < 16) {        // Can only guard it here w/o modifying Wifly class
+    if (strSize < 16) {        // Can only guard it here w/o modifying Wifly class
         *str = '\0';
         return;
     }
-    res = wifly->sendCommand("show z\r", "NO", str, 500);
+    res = wifly->sendCommand("show z\r", "NO", str, strSize, 500);
     wait(0.2);  // how long to wait is fragile, but need the rest of the chars to come in...
     if (res) {
         p = strchr(str, '\n');  // truncate after the octets.
@@ -644,3 +644,4 @@
     memset(&perfData, 0, sizeof(perfData));
 }
 
+