A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.
Dependents: Smart-WiFly-WebServer WattEye X10Svr SSDP_Server
Diff: SW_HTTPServer.cpp
- Revision:
- 30:864843965b40
- Parent:
- 29:00116fc9da74
- Child:
- 31:8f72be717a3c
diff -r 00116fc9da74 -r 864843965b40 SW_HTTPServer.cpp --- a/SW_HTTPServer.cpp Fri Oct 11 23:47:31 2013 +0000 +++ b/SW_HTTPServer.cpp Sat Oct 12 23:35:51 2013 +0000 @@ -59,7 +59,8 @@ {0,0} }; -#ifdef DEBUG +#if 0 && defined(DEBUG) +// Haven't learned anything from this in a long time, so disabled. // This uses standard library dynamic memory management, but for an // embedded system there are alternates that may make better sense - // search the web for embedded system malloc alternates. @@ -71,7 +72,7 @@ char HTTPServer::toP(void * x) { char * c = (char *) x; - if (*c >= ' ' && *c < 0x7F) + if (*c >= ' ' && *c < 0x7F) // isprint() return *c; else return '.';