Changeset 14517 for firmware/InterlockArduino
- Timestamp:
- 10/24/12 12:06:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/InterlockArduino/src/webserver/webserver.ino
r14513 r14517 167 167 { 168 168 eth += c; 169 Serial.write(c);170 Serial.print(' ');171 Serial.print(c, HEX);172 Serial.print(' ');173 Serial.println(eth.length(), DEC);169 //Serial.write(c); 170 //Serial.print(' '); 171 //Serial.print(c, HEX); 172 //Serial.print(' '); 173 //Serial.println(eth.length(), DEC); 174 174 if ( eth.indexOf('\n') != -1 ) 175 175 { … … 250 250 { 251 251 // send a standard http response header 252 client->print("HTTP/1.1 200 OK\ n");253 client->print("Content-Type: text/html\ n");254 client->print("Connnection: close\ n");255 client->print("\ n");256 client->print("<!DOCTYPE HTML>\ n");257 client->print("<html><head>\ n");252 client->print("HTTP/1.1 200 OK\r\n"); 253 client->print("Content-Type: text/html\r\n"); 254 client->print("Connnection: close\r\n"); 255 client->print("\r\n"); 256 client->print("<!DOCTYPE HTML>\r\n"); 257 client->print("<html><head>\r\n"); 258 258 259 259 // add a meta refresh tag, so the browser pulls again every 5 seconds: 260 client->print("<meta http-equiv=\"refresh\" content=\"5; URL=index.html\" />\ n");261 client->print("<meta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\" />\ n");262 263 client->print("<title>FACT camera power interlock control</title></head><body>\ n");264 client->print("<FORM NAME=\"Form\">\ n");260 client->print("<meta http-equiv=\"refresh\" content=\"5; URL=index.html\" />\r\n"); 261 client->print("<meta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\" />\r\n"); 262 263 client->print("<title>FACT camera power interlock control</title></head><body>\r\n"); 264 client->print("<FORM NAME=\"Form\">\r\n"); 265 265 } 266 266 … … 285 285 //client->print(" No "); 286 286 } 287 client->print("</span> <br />\ n");287 client->print("</span> <br />\r\n"); 288 288 } 289 289 } … … 293 293 for ( int button_id = 0; button_id < Number_of_Buttons; ++button_id ) 294 294 { 295 client->print("<P><INPUT TYPE= SUBMITNAME=\"");295 client->print("<P><INPUT TYPE=\"SUBMIT\" NAME=\""); 296 296 client->print(button_name[button_id]); 297 297 client->print("\" VALUE=\""); … … 305 305 } 306 306 307 client->print(" ><br />\n");307 client->print(" /></P><br />\r\n"); 308 308 } 309 309 } … … 318 318 void html_footer(EthernetClient *client) 319 319 { 320 client->print("</FORM></body></html>\ n");320 client->print("</FORM></body></html>\r\n\r\n\r\n"); 321 321 } 322 322
Note:
See TracChangeset
for help on using the changeset viewer.