X10 Server - IOT device to leverage a collection of old X10 devices for home automation and lighting control.
Dependencies: IniManager mbed HTTPClient SWUpdate mbed-rtos Watchdog X10 SW_HTTPServer SW_String EthernetInterface TimeInterface SSDP
X10 Server
See the X10 Server Nodebook page
Diff: WebPages.cpp
- Revision:
- 4:5da66fab599c
- Parent:
- 2:ca5d12560ff7
- Child:
- 7:16129d213e6a
--- a/WebPages.cpp Tue Jul 10 23:16:02 2018 +0000 +++ b/WebPages.cpp Fri Aug 31 22:51:15 2018 +0000 @@ -9,7 +9,7 @@ extern const char * PROG_NAME; extern const char * My_Name; extern const char * My_SerialNum; -const int Server_Port = 80; +extern int Server_Port; // ########################################## @@ -188,7 +188,6 @@ { char BigBuffer[sizeof(SETUP_TEMPLATE) + 150]; HTTPServer::CallBackResults ret = HTTPServer::ACCEPT_ERROR; - printf("Setup.xml responder\n"); switch (type) { case HTTPServer::SEND_PAGE: svr->header(HTTPServer::OK, "OK", hdrTypeHTML_NoCache); @@ -219,7 +218,6 @@ #define bufSize (sizeof(ROOTPAGE) + 100) char * BigBuffer = (char *)malloc(bufSize); HTTPServer::CallBackResults ret = HTTPServer::ACCEPT_ERROR; - printf("RootPage responder\n"); if (!BigBuffer) { printf("cannot allocate %d bytes\n", bufSize); return ret;