Commit Graph

510 Commits

Author SHA1 Message Date
Shubham Kulkarni
4f6e0c1d27 esp_http_client: Add config option for HTTP Digest auth 2021-03-23 11:58:35 +05:30
Jiri Schiebel
0c58d5fc6a lwip: added config option to enable LWIP_NETIF_API 2021-03-17 17:53:07 +00:00
Aditya Patwardhan
a06dbc11a7 https_mbedtls_example: Add minimum free heap print in the example and
respective check in the example_test.py
2021-03-16 17:15:56 +05:30
Michael (XIAO Xufeng)
be30289364 Merge branch 'feature/c3_example_tests' into 'master'
CI: add Example_GENERIC for C3

Closes IDF-2935

See merge request espressif/esp-idf!12557
2021-03-16 09:43:38 +00:00
yuanjm
3874c20b5d esp_http_server: Fix examples parse ws keep-alive packet fail. 2021-03-16 09:55:02 +05:30
Aditya Patwardhan
54b2b88e9e https_server/wss_server: Added example_test 2021-03-16 09:55:02 +05:30
Aditya Patwardhan
7c68c7a318 https_server_simple: Added example test 2021-03-16 09:55:02 +05:30
Aditya Patwardhan
d51c41d4c5 http_server/file_serving: Added example test
* Fixed unsused function warning
2021-03-16 09:55:01 +05:30
Aditya Patwardhan
4b7eaa1d1f http_request_example: Added example test 2021-03-16 09:55:01 +05:30
Aditya Patwardhan
31ddfbb7a6 https_mbedtls_example: Added example test 2021-03-16 09:55:01 +05:30
Aditya Patwardhan
dc62958241 http2_request_example: Added example test 2021-03-16 09:55:01 +05:30
Marius Vikhammer
c85d949c1f ci: run Example_GENERIC for C3
Add support for running example_GENERIC tests for C3 on label.

Fix examples that fail.
2021-03-15 10:27:07 +08:00
yuanjm
a1d5cfc260 example: Identify the callback whether is hanshake or frame-receive by req->method
Now the uri handler gets called immediately after the handshake. In the handler we can identify that this was the handshake by checking req->method as it is still a GET from the first part of the handshake the client has sent. On a normal websocket-frame-receive (when normally a websocket uriHandler gets called) this field is set to 0
Closes https://github.com/espressif/esp-idf/issues/6597
2021-03-09 07:32:15 +00:00
mjcross
03901946ba Explain how to fix 'httpd_parse: header too long'
Because this is the 'simple' server example, it is probably where users will start out to understand the HTTP Server API; and also where they might come if they are having problems.
So I think it is useful to explain to users what to do if they see "httpd_parse: parse_block: request URI/header too long", which can easily happen if they submit a POST from an HTML form (for example). That certainly would have helped me!

Merges https://github.com/espressif/esp-idf/pull/6547

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-03-04 04:08:47 +00:00
Liu Han
b3a35e3d4e pppos-client: Refactor modem component
Merges https://github.com/espressif/esp-idf/pull/6483
2021-03-01 17:10:48 +00:00
Jonathan Dreyer
42aaefe218 Remove duplicated empty lines
Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-03-01 17:10:48 +00:00
Jonathan Dreyer
3968660b2a Move DCE_CHECK in the esp_modem_dce
Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-03-01 17:10:48 +00:00
Jonathan Dreyer
de239f151f Edit comments with protocol foreach methods
Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-03-01 17:10:48 +00:00
Jonathan Dreyer
a77e9a8ab9 Move typedef with private resource into esp_modem_dce.h
Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-03-01 17:10:48 +00:00
Jonathan Dreyer
ea1df995f8 Move commun methods in DCE and align few methods
Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-03-01 17:10:48 +00:00
David Cermak
3748b4ac57 esp_modem: Add specific power-down command for SIM7600 2021-02-26 17:16:28 +01:00
David Čermák
00432fa2c3 Merge branch 'feature/update_mqtt_test_url' into 'master'
Feature/update mqtt test url

See merge request espressif/esp-idf!12473
2021-02-26 16:09:38 +00:00
aleks
0d3f19beea freemodbus: fix mb zero based reg address in the iterator
Fixes https://github.com/espressif/esp-idf/issues/6571
2021-02-25 15:17:45 +01:00
yuanjm
cd521d4ae3 esp_http_server: support dynamic payload len for ws server
Closes https://github.com/espressif/esp-idf/issues/6433
2021-02-24 11:40:34 +00:00
yuanjm
f8d27ebd76 examples: Make tcp_server example support tcp keepalive function 2021-02-23 18:26:03 +08:00
yuanjm
b06a588263 examples: Use CONFIG_LWIP_IPV6 to strip tcp_server example 2021-02-23 18:26:03 +08:00
yuanjm
821eea45b3 examples: Strip IPv6 function in example and use sockaddr_storage to replace sockaddr_in6 2021-02-23 18:26:03 +08:00
yuanjm
ca037eba9b examples: Update mqtt open source test server address 2021-02-23 15:29:07 +08:00
Fu Hanxi
fc7b962e54 bugfix: fix http_server example sdkconfig file name 2021-02-22 15:50:52 +08:00
David Cermak
41146d674f ci: Update pppos client test regex with esp-tls transport layer 2021-02-16 09:01:35 +01:00
David Cermak
b4d792446c examples/mqtt: Use common transport for setting log severity 2021-02-16 09:00:43 +01:00
Euripedes Rocha Filho
b5682610b6 examples/mqtt: Cleanup on examples
- Removes extra callback function, the code from the callback is integrated into the event handler code.
- Clarify usage of handler args, pass NULL as callback data instead of client, to avoid user confusion,
  and add documentation on usage of handler_args.
2021-02-11 07:29:29 +01:00
Liu Han
94512a76b7 example/http_server: add basic authenticated example to HTTP server
Closes https://github.com/espressif/esp-idf/issues/5646
2021-02-10 05:23:01 +00:00
Marius Vikhammer
04df1f3a42 CI: enable example builds for C3
Enables building C3 examples in CI.

Fixes related warnings/errors and disables examples that cannot run.
2021-02-09 12:04:02 +08:00
David Cermak
c6339d0b4c ci: Make the mqtt example test to send only portion of the partition
This makes the test faster and more robust in very a busy WiFi environment
(our CI) and still exercises the scenario of fragmenting the message on
both mqtt and ssl levels (binary size to send > mqtt buffer size)
2021-02-02 14:25:57 +01:00
Mahavir Jain
d34acd0d82
examples/protocols: update www.howsmyssl.com certificate to fix test failures 2021-01-29 19:06:24 +05:30
Alex Lisitsyn
96b77a28b1 freemodbus: add support for list of area descriptors for each register area
add multi register area descriptors into concrete port (initial)
add create/destroy of area descriptors into concrete port
add  the list of descriptors in common slave interface structure and init/destroy in concrete slave port
move r/w callback functions into common slave
final update of common slave interface wrappers add override API option in concrete port
update slave examples to check new  feature
2021-01-28 12:29:32 +08:00
Fu Hanxi
0146f258d7 style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
Jiang Jiang Jian
76bb9565af Merge branch 'bugfix/fix_wifi_interface_use' into 'master'
esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA

See merge request espressif/esp-idf!12050
2021-01-25 12:18:27 +08:00
David Čermák
a461f8f115 Merge branch 'bugfix/ws_transport_ping' into 'master'
ws_transport: Add option to propagate control packets to the app

Closes IDFGH-4478

See merge request espressif/esp-idf!11957
2021-01-22 19:21:43 +08:00
David Cermak
acc7bd2ca4 ws_transport: Add option to propagate control packets to the app
Client could choose if they want to receive control packets and handle
them.
* If disabled (default) the transport itself tries to handle PING
and CLOSE frames automatically during read operation. If handled
correctly, read outputs 0 indicating no (actual app) data received.
* if enabled, all control frames are passed to the application to be
  processed there.

Closes https://github.com/espressif/esp-idf/issues/6307
2021-01-22 07:22:41 +00:00
Aditya Patwardhan
7c11988d19 configure_ds.py: Fix double quoted strings ( pre_hook check ) 2021-01-22 12:11:04 +05:30
Aditya Patwardhan
79c23a1886 esp32c3/Digital Signature: mbedtls integration through ESP-TLS 2021-01-22 11:54:16 +05:30
Aditya Patwardhan
b06fa1d7c2 https_request_example: Updated the example to showcase cacert_buf and global_ca store
* Made required changes in the example_test
2021-01-21 01:17:23 +00:00
xiehang
b8a8fe3f54 esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA 2021-01-19 11:55:44 +08:00
Aditya Patwardhan
64e543ed0a http2_request: Enable insecure TLS by default 2021-01-18 16:05:46 +05:30
Mahavir Jain
526f682397 Merge branch 'bugfix/httpd_session_close_lru' into 'master'
esp_http_server: Add flag in sock_db to identify httpd_sess_close is called from httpd_session_close_lru

Closes IDF-2443

See merge request espressif/esp-idf!11543
2021-01-15 20:06:00 +08:00
Shubham Kulkarni
59869bf610 http_server example: Add example test which opens multiple connections 2021-01-15 05:53:41 +00:00
Aditya Patwardhan
f97aed80c2 configure_ds.py: Add function documentation for improving redability. 2021-01-14 22:40:40 +05:30
Aditya Patwardhan
5331bc2c71 esp32s2/configure_ds.py: The script now reads and parses the efuse summary of
the esp32-s2 chip.
    * Added option to read and use previously burned efuse keys
    * Added option for the user to save the DS parameters for
    * development purpose.
    * Updated required documentation.
2021-01-14 22:40:40 +05:30