SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Revision:
36:03c4e6a9a9e9
Parent:
35:3fc65b5d6340
--- a/webserver.cpp	Fri Nov 04 09:51:34 2011 +0000
+++ b/webserver.cpp	Tue Jun 05 05:41:30 2012 +0000
@@ -2,7 +2,7 @@
 #include "SimpleSocket.h"
 
 void webserver() {
-    char *response0 =
+    const char *response0 =
         "HTTP/1.1 200 OK\r\n"
         "Content-Type: text/html\r\n"
         "\r\n"
@@ -14,15 +14,15 @@
         "<body>\r\n"
         "<h2>Analog Input</h2>\r\n"
         "<table cellpadding=\"5\">\r\n";
-    char *response1 =
+    const char *response1 =
         "<tr style=\"background:#ccccff\">"
         "<th>pin</th><th>value</th>"
         "</tr>\r\n";
-    char *response2 =
+    const char *response2 =
         "<tr style=\"background:#cccccc\">"
         "<td>p%d</td><td align=\"center\">%f</td>"
         "</tr>\r\n";
-    char *response3 =
+    const char *response3 =
         "</table>\r\n"
         "</body>\r\n"
         "</html>\r\n";