ported HTTP-Server with W5500 Ethernet Shield
Dependencies: W5500Interface mbed-rpc mbed
Fork of HTTP-Server by
Diff: Formatter.cpp
- Revision:
- 11:ac3569846176
- Parent:
- 10:8b4c3d605bf0
--- a/Formatter.cpp Thu Jul 18 10:10:14 2013 +0000 +++ b/Formatter.cpp Tue Apr 28 13:54:18 2015 +0000 @@ -142,12 +142,16 @@ Formatter(3) { } +extern char ipaddr_backup[17]; void InteractiveHTMLFormatter::get_chunk(const int c, char *reply) { if(c == 0) - sprintf(chunk, INTERACTIVE_HTML_CODE_1, EthernetInterface::getIPAddress()); - + { + //srintf(chunk, INTERACTIVE_HTML_CODE_1, "192.168.77.34"); + sprintf(chunk, INTERACTIVE_HTML_CODE_1, ipaddr_backup); + //sprintf(chunk, INTERACTIVE_HTML_CODE_1, EthernetInterface::getIPAddress()); + } else if(c == 1) { if(reply != NULL && strlen(reply) != 0) @@ -167,7 +171,8 @@ strcat(chunk, "<li>"); strcat(chunk, *itor); strcat(chunk, " (<a href=\"http://"); - strcat(chunk, EthernetInterface::getIPAddress()); + //strcat(chunk, EthernetInterface::getIPAddress()); + strcat(chunk, "192.168.77.34"); strcat(chunk, "/"); strcat(chunk, *itor); strcat(chunk, "/delete\">delete</a>)");