Commit Graph

633 Commits

Author SHA1 Message Date
Aditya Patwardhan
6f20ca93ad Merge branch 'fix/http2_request_example' into 'master'
http2_request_example: Change the target http2 server to http2.github.io

See merge request espressif/esp-idf!16655
2022-01-06 03:26:50 +00:00
Aditya Patwardhan
2b026ea1fa http2_request_example: Change the target http2 server to http2.github.io and
perform only a `GET` request.
2022-01-05 12:26:39 +05:30
Mahavir Jain
c26500cd5a esp-tls: mark esp_tls_conn_delete API as deprecated
It is recommended to use `esp_tls_conn_destroy` API instead
2022-01-04 15:40:07 +05:30
Yuan Jian Min
0c73f20afd docs: Add user-friendly guide about how to use ws_server_example_test.py
Closes https://github.com/espressif/esp-idf/issues/8060
2022-01-02 11:27:05 +00:00
Rocha Euripedes
279c8aeb8a Merge branch 'example/asio_async_http_request' into 'master'
Examples/Asio:  Async http request

See merge request espressif/esp-idf!15285
2021-12-17 13:08:37 +00:00
David Čermák
e8a4c4b440 Merge branch 'bugfix/mdns_add_result_count_async' into 'master'
mdns: Added results count to async API (GitHub PR)

Closes IDFGH-6340

See merge request espressif/esp-idf!16362
2021-12-16 12:48:39 +00:00
Euripedes Rocha
2433816b14 EXAMPLE/ASIO Async HTTP request
Introduces a new example on ASIO to ilustrates on how to compose
async operation to build network related protocols.
2021-12-15 19:54:24 +08:00
David Cermak
c297301ecc mdns: Minor fix of API description and API usage 2021-12-10 13:25:03 +01:00
Aditya Patwardhan
c66c18596c Merge branch 'fix/https_request_example_test' into 'master'
https_request_example: Update the example test to use local python server

See merge request espressif/esp-idf!15931
2021-12-07 11:14:34 +00:00
David Čermák
eacaa9823d Merge branch 'feature/remove_pppos' into 'master'
PPPoS/Examples: Remove internal component, examples and test

Closes IDF-4078

See merge request espressif/esp-idf!16251
2021-12-07 08:21:07 +00:00
David Cermak
5a41e6afa9 Examples: Remove pppos_client example 2021-12-06 12:42:17 +01:00
Aditya Patwardhan
36bb817b80 https_request_example:
Use local python server to test client session tickets
Update example test to test the client session tickets
Check for minimum heap info in the example test.
2021-12-05 02:54:52 +08:00
David Cermak
d823106aa6 asio: Use internal ssl context and engine impl
Implement asio-ssl layer with three classes in asio::ssl::mbedtls:
* context -- replaces SSL_CTX, used mainly as a container to options,
certs, keys
* engine -- replaces SSL, implements the actual mbedtls operations
* bio -- implements openssl BIO specifically tailered to mbedtls and
its asio usage

Further updates:
* asio: Used shared_ptr<> for bio pairs
* asio: Add error checks to mbedtls-bio
* asio: Address potential ssl-context ownership issue
* asio: Address potential bio-engine ownership issue
2021-12-03 09:32:42 +01:00
Tomas Rezucha
ebaca79557 other: Move cbor, jsmn and libsodium to idf-component-manager
Marginal components are being carved out from esp-idf and moved to
https://github.com/espressif/idf-extra-components.
They are distributed via idf-component-manager, see
https://components.espressif.com.
2021-11-30 21:44:48 +01:00
David Cermak
020047b0f9 Examples/lwip: sntp example - Make SNTP server configurable
Also updates NTP example test to allow more attempts
2021-11-25 08:50:29 +01:00
Emil Muratov
696acf5e3f Examples/lwip: sntp example - updated ntp over dhcp code/comments
Apply suggestions from code review
Co-authored-by: david-cermak <38914379+david-cermak@users.noreply.github.com>

Merges https://github.com/espressif/esp-idf/pull/7824
2021-11-23 12:59:58 +01:00
Harshit Malpani
cfa896ec54 feature: Checking Certificate Expiry 2021-11-19 09:43:27 +05:30
Roland Dobai
766aa57084 Build & config: Remove leftover files from the unsupported "make" build system 2021-11-11 15:32:36 +01:00
Roland Dobai
9c1d4f5b54 Build & config: Remove the "make" build system
The "make" build system was deprecated in v4.0 in favor of idf.py
(cmake). The remaining support is removed in v5.0.
2021-11-10 09:53:53 +01:00
Alex Lisitsyn
0586be45d2 modbus: update to support other targets 2021-11-08 16:28:55 +00:00
Ivan Grokhotkov
53015490e3 Merge branch 'bugfix/freemodbus_tcp_master_fix_long_frame_buffer_issue' into 'master'
freemodbus: fix tcp master long frame buffer issue

See merge request espressif/esp-idf!11687
2021-11-05 16:23:35 +00:00
Alex Lisitsyn
0d393558d3 freemodbus: fix tcp master long frame buffer issue 2021-11-05 16:23:35 +00:00
aleks
ee104f8de2 freemodbus: fix timer port to use esp_timer instead of group timer 2021-11-05 13:19:09 +00:00
David Cermak
e99490a0dd CI: Fix example test for http_request
Test is based on a public http server which might not be always
available, so the example test checks if it's available
so the test could be (by)passed if the public server not available.

But we didn't correctly check if a socket/timeout exception occurs
when trying to connect
2021-11-04 17:02:36 +01:00
Shubham Kulkarni
5bf49e1cd6 esp_http_client: Support handling larger content lengths
Closes https://github.com/espressif/esp-idf/issues/6580
2021-10-29 18:14:22 +08:00
Harshit Malpani
47b17f6c99 Enable the example test for http2_request example 2021-10-25 16:38:08 +08:00
Guo Jia Cheng
a928411ab3 Merge branch 'feature/mdns-subtype' into 'master'
mdns: support service subtype

Closes IDFGH-3560

See merge request espressif/esp-idf!15467
2021-10-25 07:50:49 +00:00
Alex Lisitsyn
bdf0298009 Bugfix/modbus fix copyright headers 2021-10-23 01:23:03 +08:00
Jiacheng Guo
e7e8610f56 mdns: support service subtype
* Closes https://github.com/espressif/esp-idf/issues/5508
2021-10-19 17:54:17 +08:00
Sven Fuchs
37da873da9 Fetch headers in POST example for native requests
In the POST section of `http_native_request` headers are not fetched. thus, just commenting out the GET request example would result in a `status` and `content_length` of `0` being reported (quite confusing).

(Plus, it should log `HTTP POST Status` here, instead of `HTTP GET Status`.)

Merges https://github.com/espressif/esp-idf/pull/7696
2021-10-19 11:25:49 +08:00
Mahavir Jain
b94bbdbd9c Merge branch 'feature/esp_https_server_callback' into 'master'
feature: Added user callback for esp_https_server

Closes IDFGH-5771

See merge request espressif/esp-idf!15405
2021-10-12 04:37:50 +00:00
Laukik Hase
1d2b2b5879 feature: Added user callback for esp_https_server
- Can be used to get connection or client information (SSL context)
- E.g. Client certificate, Socket FD, Connection state, etc.
- Added example callback for getting client certificate information in 'https_server/simple' example

Closes https://github.com/espressif/esp-idf/issues/7479
2021-10-11 09:41:01 +05:30
Jakob Hasse
f86e154a56 Merge branch 'feature/removed_hyphens_from_examples' into 'master'
[examples]: Project names consistent with their directories

Closes IDFGH-3673

See merge request espressif/esp-idf!13570
2021-10-11 03:43:37 +00:00
Guo Jia Cheng
1e67cf1ec5 Merge branch 'feature/mdns-multiple-instance' into 'master'
mdns: allow mutiple instances with same service type

See merge request espressif/esp-idf!15180
2021-10-11 02:49:16 +00:00
Jakob Hasse
81e9266204 [examples]: removed hyphens
Replaced hyphens with underscores in examples
project definition for all examples which had
hyphens in their project name. dpp-enrollee is
an exceptions because the name matches the
project directory name while the project
directory also contains hyphens.
2021-10-09 13:58:24 +08:00
Jakob Hasse
669a006bf5 [examples, tools]: added some new license headers 2021-10-09 13:58:24 +08:00
Mahavir Jain
71fc5fa478 Merge branch 'fix/update_esp_http_client_example_test' into 'master'
Update example test for esp_http_client

See merge request espressif/esp-idf!15399
2021-10-06 06:26:32 +00:00
David Čermák
c0e5c7296d Merge branch 'docs/deprecate_openssl_api' into 'master'
openssl: Add deprecation warning to ssl.h

See merge request espressif/esp-idf!15287
2021-10-06 05:27:59 +00:00
David Čermák
6237f5859d Merge branch 'bugfix/pppos_client_dce_deref' into 'master'
Examples/pppos_client: Fix potential nullptr deref on DCE init (GitHub PR)

Closes IDFGH-5730

See merge request espressif/esp-idf!15392
2021-10-05 12:52:47 +00:00
David Cermak
cfc001870c openssl: Add deprecation warning to ssl.h
OpenSSL component will be discontinued in ESP-IDF v5.x. The only official TLS API will be esp-tls
Add docs warning about deprecation in v5.x

Removed all examples demonstrating usage of openssl in IDF
2021-10-05 11:45:52 +02:00
Harshit Malpani
933989125d Update example test for esp_http_client 2021-10-05 16:58:23 +08:00
Marco Gigante
b40b22c136 Fix DCE deferencing crash in pppos example
Merges https://github.com/espressif/esp-idf/pull/7439
2021-10-04 16:09:27 +02:00
David Cermak
336de29413 Examples/pppos_client: Fix manual parsing to accept unexpected lines
Regression from a90817cda0 that caused
parsing exit in case of an unexpected result found (line handler
reported ESP_FAIL). Prevously if any error found in the line handler we
just posted an unexpected event, but continued with parsing. Fixed by
allowing for further parsing.

Related: https://github.com/espressif/esp-idf/issues/7176
2021-10-04 19:34:17 +08:00
Zim Kalinowski
002cd296e1 Merge remote-tracking branch 'origin/master' into feature/github-7022 2021-10-03 12:25:39 +08:00
Harshit Malpani
3203b42c87 Updated the root certificate of https examples 2021-10-01 13:02:48 +05:30
KonstantinKondrashov
709abee65c example_tests: Deletes usage esp32c3 ECO0 in CI (by default ECO3) 2021-09-24 13:55:07 +08:00
David Čermák
092f53cea6 Merge branch 'bugfix/pppos_client_manual_pattern_detection' into 'master'
Examples/pppos_client: Remove uart pattern detection

Closes IDFGH-5435

See merge request espressif/esp-idf!15053
2021-09-22 14:09:42 +00:00
Jiacheng Guo
b7a99f4658 mdns: allow mutiple instances with same service type 2021-09-22 13:07:31 +08:00
David Cermak
a90817cda0 Examples/pppos_client: Remove uart pattern detection
Due to these problems
* possible race condition, two events competing
* pattern detection work a little different for different IDF versions
* switching between pattern detection and data reading is complicated
* using just data events is easier for porting to a different communication peripheral
These changes were made:
* Removed the UART pattern detection entirely
* Used manual pattern detection after reading plain data from the UART

Closes https://github.com/espressif/esp-idf/issues/7176
2021-09-21 10:12:54 +02:00
Alex Lisitsyn
cd27a44107 Merge branch 'bugfix/modbus_fix_stack_reinitialization_sequence' into 'master'
freemodbus: fix TCP stack/examples reinitialization sequence

Closes IDFGH-4432

See merge request espressif/esp-idf!12123
2021-09-17 11:13:57 +00:00