Commit Graph

55 Commits

Author SHA1 Message Date
Bogdan Kolendovskyy
ecfe26da47 examples: fix format errors, remove -Wno-format
Logging in series of examples has misuse of "%d" instead of type-appropriate format specifiers.
Fix by changing "%d" to PRIxx macros corresponding to type.
Remove -Wno-format compile flag in those examples that are affected.
2025-09-19 18:51:40 +08:00
David Cermak
15805501f7 esp_netif/lwip: Fix core-locking config
* Fix thread safety issues in non-core locking
* Add option to verify thread safety issues in lwip (core-lock assertion)
* Make esp_sntp.h thread safe API
* Fix sntp examples
* Fix openthread libs

Closes https://github.com/espressif/esp-idf/issues/9908
Closes https://github.com/espressif/esp-idf/issues/10502
Closes https://github.com/espressif/esp-idf/issues/10466
2025-09-19 18:51:40 +08:00
Chen Yudong
8f90dab8d8 examples: enable build esp32c6 for wifi and network examples 2025-09-19 18:51:40 +08:00
Suren Gabrielyan
1efdb52330 Examples: migration mqtt examples to pytest 2025-09-19 18:51:40 +08:00
Armando
f643b95118 partition: use esp_partition_munmap instead of spi_flash_munmap 2025-09-19 18:51:40 +08:00
Martin Vychodil
cc7d9b4b7c Storage: Partition APIs moved to the new component 'esp_partition'
All the partition handling API functions and data-types were moved from the 'spi_flash' component to the new one named 'esp_partition'. See Storage 5.x migration guide for more details
2025-09-19 18:51:40 +08:00
simon.chupin
1cf692ec34 tools: remove the dependency on the future package 2025-09-19 18:51:40 +08:00
Ivan Grokhotkov
649f6d369e build system: re-add -Wno-format as private flag for some example components 2025-09-19 18:51:40 +08:00
Euripedes Rocha
dd40fc3af2 [MQTT] - Updates esp_mqtt configuration struct
- Layered config struct
- Fix examples.
2025-09-19 18:51:40 +08:00
Chen Yudong
119d724017 CI: make sure that reading of the ipv4 address has finished 2025-09-19 18:51:40 +08:00
Chen Yudong
fade26cf27 CI: Improve common test methods
also fix ota test cases
2025-09-19 18:51:40 +08:00
Chen Yudong
729363e4cc CI: fix ip address checker and trace log 2025-09-19 18:51:40 +08:00
Fu Hanxi
4ebf448bcf docs: changes docs supported targets tables 2025-09-19 18:51:40 +08:00
Michael (XIAO Xufeng)
c2d902062e ci: partially enable example build for esp32c2 2025-09-19 18:51:40 +08:00
Djordje Nedic
37ff11d0ed tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2025-09-19 18:51:40 +08:00
David Cermak
b390e07833 esp_netif: Remove tcpip_adapter compatibility layer 2025-09-19 18:51:40 +08:00
David Cermak
c0871b5be9 ci/mqtt: Move mqtt example tests to ethernet runners 2025-09-19 18:51:40 +08:00
Roland Dobai
5a8152580b Build & config: Remove leftover files from the unsupported "make" build system 2025-09-19 18:51:40 +08:00
Roland Dobai
426f028d84 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.
2025-09-19 18:51:40 +08:00
Shubham Kulkarni
17ae8434f4 Split example_tests with Example_WIFI tag group into Example_OTA and Example_Protocols 2025-09-19 18:51:40 +08:00
Euripedes Rocha
5fafa05f92 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
2025-09-19 18:51:40 +08:00
yuanjm
c500e7c930 examples: Update mqtt open source test server address 2025-09-19 18:51:40 +08:00
David Cermak
ad00d740f4 examples/mqtt: Use common transport for setting log severity 2025-09-19 18:51:40 +08:00
Euripedes Rocha Filho
4471cd2158 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.
2025-09-19 18:51:40 +08:00
David Cermak
edde84b377 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)
2025-09-19 18:51:40 +08:00
Fu Hanxi
438b06bd6b style: format python files with isort and double-quote-string-fixer 2025-09-19 18:51:40 +08:00
He Yin Ling
75dd50ef3f test: remove fake binary size check in example test:
the binary size check in example test was removed long time ago. Now we
have updated ttfw_idf to raise exception when performance standard is
not found. These fake performance check will be regarded as error.
Remove them now.
2025-09-19 18:51:40 +08:00
David Cermak
caae6c4582 examples: make mqtt tcp example to report tcp-transport errno 2025-09-19 18:51:40 +08:00
Angus Gratton
ebd802fa2c Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2025-09-19 18:51:40 +08:00
Roland Dobai
3cf32eda75 Add multi-target support for performance tests 2025-09-19 18:51:40 +08:00
David Cermak
5488fe31ba esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK()
esp_netif_init() returns standard esp_err_t error code (unlike tcpip_adapter init), so shall be checked for the return value
Also to make the initialization code more consistent.
2025-09-19 18:51:40 +08:00
He Yin Ling
274a258b02 test: update example and unit tests with new import roles:
tiny_test_fw is a python package now. import it using normal way.
2025-09-19 18:51:40 +08:00
David Cermak
1d09afe527 esp_netif: include tcpip_adapter legacy header by default to provide *implicit* compatiblity 2025-09-19 18:51:40 +08:00
David Cermak
29a89b1961 examples: protocol examples which use common connection component
updated to use esp_netif_init instead of tcpip_adapter in initialization code
2025-09-19 18:51:40 +08:00
Marius Vikhammer
358b4b1919 protocol examples: enable protocol examples for esp32sbeta
Closes IDF-1027
2025-09-19 18:51:40 +08:00
David Cermak
bc2c8ffb4f ci: mqtt ssl test updated to output larger data in form of binary partition
Testing with predefined buffer sizes for MQTT as well as mbedTLS to
exercise fragmenting outgoing data on both layers. Example test compares
received partition with the actual binary file.
2025-09-19 18:51:40 +08:00
David Cermak
c70dbbff8f mqtt: updated to latest version to include latest fixes, support for global CA store, extended error structure to receive mqtt specific errors. updated idf ssl example to use this error struct
https://github.com/espressif/esp-mqtt/issues/135
2025-09-19 18:51:40 +08:00
Marius Vikhammer
d67b4ec8b8 MQTT: update default broker URL for examples
The MQTT broker URL used as default in the examples has ceased operation. All examples and documention have been updated to point to the new domain mqtt.eclipse.org.
This also required an update of the python example test scripts to use TLS 1.2
2025-09-19 18:51:40 +08:00
Michael (XIAO Xufeng)
e6df783596 ci: limit example test to ESP32s 2025-09-19 18:51:40 +08:00
Anton Maklakov
898d58b747 tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2025-09-19 18:51:40 +08:00
Mahavir Jain
49360c1a93 examples: change default build instructions in docs to CMake 2025-09-19 18:51:40 +08:00
David Cermak
bf66526873 mqtt: update example documentation on generating a certificate for ssl authentication to hosts
Closes https://github.com/espressif/esp-idf/issues/3593
2025-09-19 18:51:40 +08:00
Angus Gratton
0872e4ec68 build system: Use CMake-based build system as default when describing commands 2025-09-19 18:51:40 +08:00
David Cermak
f70dafe18b esp-tls: extending error handle to contain error descriptors with last mbedtls failure and latest certificate verification result flags, reworked tcp_transport to use this error handle 2025-09-19 18:51:40 +08:00
David Cermak
948eea4a26 esp-tls: capturing specific errors to be available in tcp_transport and then in application code 2025-09-19 18:51:40 +08:00
Renz Christian Bagaporo
0e49903b2f examples: use new component registration api 2025-09-19 18:51:40 +08:00
Michael (XIAO Xufeng)
0ff7c4ee21 ci: support to build esp32s2beta simple examples 2025-09-19 18:51:40 +08:00
David Cermak
8c299a21d3 mqtt: added support for esp event loop, updating examples to register and use event loop handler 2025-09-19 18:51:40 +08:00
Ivan Grokhotkov
ad3c88c867 examples/protocols/mqtt: use common network component 2025-09-19 18:51:40 +08:00
Roland Dobai
79e16da5c4 Correct Kconfigs according to the coding style 2025-09-19 18:51:40 +08:00