arduino - ESP8266 CIPSEND GET HTTP Host Request Time-out -
at+cipsend=65 ok > recv 65 bytes send ok +ipd,394:http/1.1 408 request time-out date: wed, 24 aug 2016 05:24:40 gmt server: apache content-length: 223 connection: close content-type: text/html; charset=iso-8859-1 <!doctype html public "-//ietf//dtd html 2.0//en"> <html><head> <title>408 request time-out</title> </head><body> <h1>request time-out</h1> <p>server timeout waiting http request client.</p> </body></html> closed
i 408 request timeout link working length okay
tx rx rx tx
i have search google many times. still haven't have solution tried different link.
i using arduino mega 2560 , esp8266 or esp-01
i have solution
i assume you're doing serial monitor. can't use escape sequences \r in serial monitor entry box. enter evaluated string of separate ascii characters; \r backslash character followed lowercase r. send http request, make serial monitor send \r\n you.
- first set serial monitor both nl & cr permanently; serve commands , http requests appends \r\n send.
- count number of bytes in http request, including carriage return , newline characters. count 61 characters in request.
- use count in at+cipsend
- the first line of request, , stop right before first \r\n, , click send. because of setting, monitor send typed \r\n suffixed it.
- type , send each line of request, sent first line, until you've sent last line.
- since there additional \r\n after last line, click send again, without typing anything. , since module requires \r indicate end of data packet, click send 1 last time.
Comments
Post a Comment