Results 1 to 4 of 4
Thread: Arduino
Hybrid View
-
29th April 2015 06:56 #1Registered User
Join Date: Mar:2008
Location:
Posts: 483
Arduino
WEB Server :
IP/analog0.html
IP/analog1.html
IP/analog2.html
.....
-
29th April 2015 11:12 #2
WEB Server? http://www.arduino.cc/en/Tutorial/WebServer, .
.. REQUEST- , , .ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1
-
29th April 2015 14:13 #3Registered User
Join Date: Mar:2008
Location:
Posts: 483
hateras ,
-
29th April 2015 16:15 #4
REQUEST-a.
GET 192.168.0.3/analog0.html HTTP/1.1 RESPONSE- .Code:int readHTTPRequest(EthernetClient client, char * buffer) { int byteCnt = 0; boolean currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read(); buffer[byteCnt] = c; byteCnt++; // if you've gotten to the end of the line (received a newline character) and the line is blank, // the http request has ended, // so you can send a reply if (c == '\n' && currentLineIsBlank) { break; } if (c == '\n') { // you're starting a new line currentLineIsBlank = true; } else if (c != '\r') { // you've gotten a character on the current line currentLineIsBlank = false; } } } buffer[byteCnt] = '\0'; return byteCnt; }Last edited by hateras; 29th April 2015 at 16:34.
ASRock B550M Pro 4; Ryzen R5 3600; 2x16 GiB G.SKILL Aegis 3200; 1TB Samsung QVO 960 + 3TB Seagate IronWolf; Zalman Z1




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in