Commit Graph

604 Commits

Author SHA1 Message Date
Cao Sen Miao
3aa9ac2469 usb_serial_jtag: Add blocking driver to support vfs. 2021-07-05 11:22:38 +08:00
David Cermak
042fa1831e CI: mdns example test: start responder after valid IP
to clean up the test and not to pollute the network unnecessarily.
Also keeps sending the delegated query until a response found
2021-07-01 15:45:17 +02:00
David Cermak
d81482d699 mdns: Add asynchronous query API
Closes https://github.com/espressif/esp-idf/issues/7090
2021-06-30 17:20:30 +04:00
David Cermak
07de534191 examples: Move non-block socket examples to a single app
To simplify the examples, reused the boiler plate and statics and mainly
for testing on localhost interface with no physical network.
2021-06-25 20:46:49 +08:00
suren.gabrielyan
e8bbe2f94f examples: Added non blocking sockets example tests
Closes https://github.com/espressif/esp-idf/issues/6675
2021-06-25 20:46:49 +08:00
David Čermák
8d476269d6 Merge branch 'bugfix/ci_move_udp_socket_tests_to_eth_runners' into 'master'
CI: Adjust UDP socket tests to be more reliable

Closes IDFCI-528

See merge request espressif/esp-idf!14080
2021-06-24 05:53:48 +00:00
David Čermák
3452c5f194 Merge branch 'feature/mdns-value-len' into 'master'
mdns: allow explicit txt value length

See merge request espressif/esp-idf!13981
2021-06-23 14:53:48 +00:00
David Cermak
bc3adaded3 CI/socket examples: Add UDP operation retries, wait until server is up 2021-06-23 07:36:27 +02:00
Aditya Patwardhan
02820a90f7 Add sdkconfig which disables all menuconfig options in mbedtls. 2021-06-21 17:53:22 +05:30
Jiacheng Guo
b4e0088b68 mdns: allow explicit txt value length 2021-06-16 17:47:07 +08:00
David Čermák
a09e413fb6 Merge branch 'feature/add-mdns-delegation' into 'master'
mdns: add host and service delegation

See merge request espressif/esp-idf!13063
2021-06-10 13:58:32 +00:00
Chen Yudong
b3b71bc8ab CI: fix connection failures in asio example tests 2021-06-07 04:04:14 +00:00
Jiacheng Guo
a4f263948c mdns: fix test script delayed response 2021-06-04 10:44:36 +08:00
Jiacheng Guo
e6135552d2 mdns: fix wrong SRV/PTR record handling 2021-06-04 10:44:36 +08:00
Jiacheng Guo
d2a5d25984 mdns: fix mdns probe/reply behavior
* send correct hostnames when probing.
* add test for mdns host delegation.
2021-06-04 10:44:36 +08:00
Jiacheng Guo
2d34352f3d mdns: make delegate host address a list
Also adds unit test and doc string for new apis.
2021-06-04 10:44:36 +08:00
Jiacheng Guo
2174693096 mdns: add remove delegate host api 2021-06-04 10:44:36 +08:00
Jiacheng Guo
401ff56cc1 mdns: add mdns delegation
This allows publishing mdns services for other devices.
2021-06-04 10:44:36 +08:00
Tomas Sebestik
f658e19d91 Add longer dut.expect timeout DNS -> 30s 2021-05-31 17:40:54 +02:00
Angus Gratton
e305f29382 asio coap: If LWIP IPV6 is disabled, automatically don't build asio & coap
- Removes need to manually exclude these components as shown at
  https://github.com/espressif/esp-idf/issues/3781#issuecomment-825742378

- Hide the config for these components if IPV6 is disabled

- The components are still included in the build, but with no source
  files
2021-05-20 19:53:00 +10:00
Andrey Starodubtsev
6e343c1f8b Fix typo
s/\bUnknow\b/Unknown/g
2021-05-14 18:26:22 +03:00
Akihiro YAMAZAKI
24225e5c16 examples/esp_http_client: output_buffer isn't necessarily NUL-terminated
Closes https://github.com/espressif/esp-idf/pull/6927
Closes IDFGH-5150
2021-05-10 05:45:59 +00:00
suren.gabrielyan
823abfdfd5 examples: Add esp-ssl example tests server/client
Closes IDF-1156
2021-04-21 16:18:03 +04:00
Angus Gratton
209a6cc855 Merge branch 'bugfix/check_partitions_fit' into 'master'
cmake partition_table: Check binaries fit in partition spaces at build time

Closes IDF-1539 and IDFGH-2503

See merge request espressif/esp-idf!9330
2021-04-19 07:33:36 +00:00
morris
9e0c9e8551 restful_example: upgrade axios 2021-04-19 11:51:56 +08:00
Angus Gratton
920edd4e73 partition_table: Add a "single factory app (large)" option for 1.5MB app size
Needed to build some examples in their default configurations (especially
ESP32-C3). Wasn't noticed until the CI checks for partition size were added.
2021-04-16 16:40:47 +10:00
Shubham Kulkarni
0a395134d4 Split example_tests with Example_WIFI tag group into Example_OTA and Example_Protocols 2021-04-15 04:00:06 +00:00
David Cermak
fd47dd4bea Examples/PPPoS: Fix pppos SMS send potential timeout in prompt waiting 2021-04-14 07:50:10 +02:00
Liu Han
6471396ae6 esp_modem: Fixed send data and wait for prompt fail from DCE
Closes https://github.com/espressif/esp-idf/issues/6428
Closes https://github.com/espressif/esp-idf/issues/6651
2021-04-14 07:50:09 +02:00
David Čermák
36fcdc482a Merge branch 'feature/add_static_ip_example' into 'master'
examples: Add static IP example

Closes IDF-2518

See merge request espressif/esp-idf!12333
2021-04-12 15:43:35 +00:00
David Čermák
1b6b05f1ab Merge branch 'bugfix/pppos_configs' into 'master'
esp-modem: Add options to support LCP ECHO and UART_ISR_RAM in the example

Closes IDFGH-2470 and IDFGH-4759

See merge request espressif/esp-idf!12962
2021-04-12 14:30:38 +00:00
yuanjm
9c9b96deff examples: Add a separate static_ip example 2021-04-12 05:32:48 +00:00
Angus Gratton
936523b904 Merge branch 'feature/secure_bootv2_c3' into 'master'
secure_boot_v2: Support SB_V2 for ESP32-C3 ECO3

Closes IDF-2647

See merge request espressif/esp-idf!13040
2021-04-12 01:31:25 +00:00
Aditya Patwardhan
b40df07521 http2_request/sh2lib: Modified the "sh2lib_connect" API to take in a new
defined `struct sh2lib_config_t` which contains required config options.

Modified the http2_request_example with the required changes.
2021-04-09 10:24:15 +00:00
David Cermak
b6f0b9ae2a esp_modem: Add option which enables UART_ISR_IN_IRAM to support OTA
Closes https://github.com/espressif/esp-idf/issues/4582
2021-04-09 06:53:30 +00:00
David Cermak
37b694559f esp_modem: Add option to support for LCP keepalive
Closes https://github.com/espressif/esp-idf/issues/6562
2021-04-09 06:53:30 +00:00
KonstantinKondrashov
ec4de4fe5c example_tests: CI uses ECO0 for esp32c3 tests 2021-04-09 14:26:06 +08:00
David Čermák
e412c52829 Merge branch 'bugfix/dangling_dce_when_init_fails' into 'master'
reset DCE pointer in DTE if we failed to init modem

Closes IDFGH-4936

See merge request espressif/esp-idf!12897
2021-04-09 06:14:54 +00:00
Floris Romeijn
2610e9c22d Examples/esp_modem: Reset DCE pointer in DTE on failure
if we failed to init modem so we can e.g. retry later

Merges https://github.com/espressif/esp-idf/pull/6727
2021-04-08 16:50:38 +00:00
Euripedes Rocha
98930e7be2 bugfix/mqtt examples: Updates the CA certificates used.
- Updates the CA certificates.
- Updates the URI names to reflect the new URI in the service used in
  the examples.

Closes IDFGH-4986
Closes https://github.com/espressif/esp-idf/issues/6776
2021-04-08 15:24:43 +00:00
David Čermák
32ccbcdf8c Merge branch 'bugfix/pppos_netif_clear_ip_event' into 'master'
esp_modem: Fixed modem netif deinit to clear IP events

Closes IDFGH-5000

See merge request espressif/esp-idf!12964
2021-04-07 11:37:36 +00:00
David Cermak
7872057976 esp_modem: Fixed modem netif deinit to clear IP events
Function esp_modem_netif_clear_default_handlers() didn't unregister
event handlers from IP related events, so if the netif modem was
reinitialized the previous handler was called with already destroyed
esp_netif handle.

Closes https://github.com/espressif/esp-idf/issues/6787
2021-04-07 06:56:30 +00:00
Aditya Patwardhan
f66bdf1233 esp_http_client: Enable support of crt_bundle in esp_http_client 2021-04-07 05:31:21 +00:00
Aditya Patwardhan
81b96ec06b Fix esp_http_client example: Set proper server verification by adding the postman root cert for https_async demo
test case.
2021-04-07 05:31:21 +00:00
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
Shubham Kulkarni
6f91d408ab file_serving example: Demonstrate use of connection close header from request headers
Closes: https://github.com/espressif/esp-idf/issues/5775
2021-01-13 13:01:15 +00:00
Liu Han
7f3bcc13d7 esp-modem: prefix the crash issue both bg96 and sim800l in OVERALL mode 2021-01-11 13:47:33 +00:00
Ash
935edc9e09 rename dce parameter
Merges https://github.com/espressif/esp-idf/pull/5750
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-01-11 13:47:33 +00:00
Robert Nuttall
d59ffd9128 Expose get operator name command. Add get access tech
Signed-off-by: Liu Han <liuhan@espressif.com>
2021-01-11 13:47:33 +00:00
Euripedes Rocha Filho
61f8dc4365 examples/mqtt : Fix ssl mutual auth to use event loop
The example for mqtt ssl mutual authentication is now using the event
loop. Thi modification makes it uniform with all the other mqtt
examples.
2021-01-08 07:38:14 +00:00
David Cermak
1c093c48ed Examples: MQTT DS example to use ds_peripheral API 2021-01-05 12:04:36 +00:00