mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-19 17:04:47 +08:00

Changes: Lru counter in place of timestamp added. syslimits.h definition guards for ARG_MAX, PATH_LEN. Renamed src/port/esp32 to src/port/esp8266. Enabled working without IPv6. Test Scripts requiring TinyFW removed Utility.console_log replaced by print.
HTTPD Server Persistant Sockets Example
The Example consists of HTTPD server persistent sockets demo. This sort of persistancy enables the server to have independent sessions/contexts per client.
-
Configure the project using "make menuconfig" and goto :
- Example Configuration ->
- WIFI SSID: WIFI network to which your PC is also connected to.
- WIFI Password: WIFI password
- Example Configuration ->
-
In order to test the HTTPD server persistent sockets demo :
- compile and burn the firmware "make flash"
- run "make monitor" and note down the IP assigned to your ESP module. The default port is 80
- run the test script "python2 scripts/adder.py <IP> <port> <N>"
- the provided test script sends (POST) numbers from 1 to N to the server which has a URI POST handler for adding these numbers into an accumulator that is valid throughout the lifetime of the connection socket, hence persistent
- the script does a GET before closing and displays the final value of the accumulator
See the README.md file in the upper level 'examples' directory for more information about examples.