User manual
The browser-
query
The browser now waits for a response, and will show a loading sign until then, or
until the connection is interrupted due to time-out. You can send a message to the
browser with a version of a familiar command:
AT+CIPSEND=0.7
The parameter 0 indicates the client to which the message is to be sent here. This
is necessary because multiple connections are permitted and several clients may
therefore also be connected. The second parameter, here 7, again indicates the
characters to be sent. > appears, and you can enter a simple
Hello
and send it out with
[Enter]
. Nothing will change in your browser at first. You
need to close the connection before this can happen. For this, use the command:
AT+CIPCLOSE=0
Now you can see a Hello in your browser. You have now implemented a first web
server application.
This first experiment shows a lot about the precise processes of communication
online. The presentation of the »Hello« in the browser is still rather simple, since
simple text was sent instead of a complex HTML page. For a proper HTML page,
you need to manually write an entire header for the Get-Request and the HTML
text. I do not want to make you go to this effort for this first experiment, however.
4.2 | Autonomous web server
The results of the previous experiment are now to be used in an autonomous pro-
gram. The new program not only sends a simple website to the browser, but also