首页 >> 知识 >> Getting Started With the ESP8266 ESP

Getting Started With the ESP8266 ESP

We can now use the following commands to send some data and display it in our web browser’s window:

AT+CIPSEND=0,5

The “0” indicates the channel through which the data is going to be transferred; while “5” represents the number of characters that are going to be sent.

When we hit enter, the symbol “>” appears. This indicates that we can now type the characters that we want to send to the browser. In this example we chose “hello.”

After a couple of seconds we get the response "SEND OK." This means that the data has been transmitted successfully to the client. However, nothing appears on the web browser’s window yet. This is because it is required to close the channel first in order to display the characters. We use the following command to close the channel:

AT+CIPCLOSE=0

“0” indicates the channel that is being closed.

Once we hit enter, our message is displayed on the web browser’s window as shown in the image above.

You can refer to the following site to see the ESP8266 AT Command Set: http://www.pridopia.co.uk/pi-doc/ESP8266ATCommands...

网站地图