Merge branch 'bugfix/doc_python3' into 'master'

Docs: Encourage to use Python 3

Closes IDF-1316

See merge request espressif/esp-idf!7726
This commit is contained in:
Krzysztof Budzynski
2020-02-26 05:04:18 +08:00
23 changed files with 52 additions and 50 deletions

View File

@@ -18,7 +18,7 @@ python scripts/esp_local_ctrl.py
Sample output:
```
python2 scripts/esp_local_ctrl.py
python scripts/esp_local_ctrl.py
==== Acquiring properties information ====

View File

@@ -8,7 +8,7 @@ This sort of persistency enables the server to have independent sessions/context
* In order to test the HTTPD server persistent sockets demo :
1. compile and burn the firmware `idf.py -p PORT flash`
2. run `idf.py -p PORT monitor` and note down the IP assigned to your ESP module. The default port is 80
3. run the test script "python2 scripts/adder.py \<IP\> \<port\> \<N\>"
3. run the test script "python 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

View File

@@ -10,7 +10,7 @@ The Example consists of HTTPD server demo with demostration of URI handling :
1. compile and burn the firmware `idf.py -p PORT flash`
2. run `idf.py -p PORT monitor` and note down the IP assigned to your ESP module. The default port is 80
3. test the example :
* run the test script : "python2 scripts/client.py \<IP\> \<port\> \<MSG\>"
* run the test script : "python scripts/client.py \<IP\> \<port\> \<MSG\>"
* the provided test script first does a GET \hello and displays the response
* the script does a POST to \echo with the user input \<MSG\> and displays the response
* or use curl (asssuming IP is 192.168.43.130):