- Wed Feb 14, 2018 10:02 am
#73977
Hi Aledrus,
I am using a serial port monitor (ESPs USART) for sending and receiving all ESP communications.
I can see the phones Get message on the monitor.
I also suspect I am not using the proper format/tags etc. as you mentioned.
What I am not sure about is 1) what is the minimum status response(s) needed and 2) how I format that response to the ESP using only the serial port.
I first setup the ESP as a server:
AT+RST
AT+CWMODE=1
AT+CIPMUX=1
AT+CIPSERVER=1,80At this point I go to my browser and input the IP address of the ESP server.
The ESP receaves the Get request from both PC and Cell phone browsers. (good so far)
The following two text groups is then sent via the serial port formatted as shown:
AT+CIPSEND=0,194<!DOCTYPE HTML><html><body><form action="EPI_code_1" method="post">Name: <input type="text" name="name"><br>E-mail: <input type="text" name="email"><br><input type="submit"></form></body></html>At this point the PC will respond to the message but not the cell phone.
I have attempted many combinations and formats before sending the message including:
HTTP/1.1 200 OK
Content-Type: text/html
Content-length: 72What I could use is a simple example message that is formatted for the serial port (using only AT+ Commands and text).
Thanks very much for your help.
Bob