Commit Graph

881 Commits

Author SHA1 Message Date
Chen Yudong
339e438840 CI: fix pattern in test case test_examples_protocol_mqtt5 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
Euripedes Rocha
bfd413589a mqtt: Set state on stoping; Add error code to Subscribed event
* Update submodule: git log --oneline ae53d799da294f03ef65c33e88fa33648e638134..fde00340f19b9f5ae81fff02ccfa9926f0e33687

Detailed description of the changes:
* Fix the default configuration for event queue
  - See merge request espressif/esp-mqtt!153
  - See commit https://github.com/espressif/esp-mqtt/commit/fb42588
* Adds missing header.
  - See merge request espressif/esp-mqtt!152
  - See commit https://github.com/espressif/esp-mqtt/commit/8a60057
* Moves state change when stopping the client
  - See merge request espressif/esp-mqtt!150
  - Closes https://github.com/espressif/esp-mqtt/issues/239
  - See commit https://github.com/espressif/esp-mqtt/commit/3738fcd
* Adds error code to MQTT_EVENT_SUBSCRIBED in case of failure
  - See merge request espressif/esp-mqtt!143
  - - Closes https://github.com/espressif/esp-mqtt/issues/233
  - See commit https://github.com/espressif/esp-mqtt/commit/9af5c26
* Adds debug information on sending dup messages
  - See merge request espressif/esp-mqtt!145
  - See commit https://github.com/espressif/esp-mqtt/commit/47b3f9b
* ci: Fix qemu build
  - See merge request espressif/esp-mqtt!147
  - See commit https://github.com/espressif/esp-mqtt/commit/68e8c4f
* ci: Build and Test QEMU on v5.0
  - See merge request espressif/esp-mqtt!142
  - See commit https://github.com/espressif/esp-mqtt/commit/9db9ee7
* client: Add support for user events
  - See merge request espressif/esp-mqtt!140
  - Closes https://github.com/espressif/esp-mqtt/issues/230
  - See commit https://github.com/espressif/esp-mqtt/commit/97503cc
* Adds unregister event API
  - See merge request espressif/esp-mqtt!139
  - Closes https://github.com/espressif/esp-idf/issues/9194
  - See commit https://github.com/espressif/esp-mqtt/commit/a9a9fe7
2025-09-19 18:51:40 +08:00
Song Ruo Jing
f43591d970 ci: Disable some unit-test-apps for esp32c6 to pass ci build stage 2025-09-19 18:51:40 +08:00
Euripedes Rocha
c54d7cfe43 [MQTT] clarification of message retransmission
- Adds description of the message retransmission process for QoS 1 and
  2.
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
Wang Zi Yan
0ec688bce6 docs: add a blank line in ble-mesh-index and translate mqtt 2025-09-19 18:51:40 +08:00
Song Ruo Jing
a394a3d70c ci: Enable esp32c6 example, test_apps, and unit tests CI build stage 2025-09-19 18:51:40 +08:00
yuanjianmin
81854fdf75 ci: Fix mqtt broker is not available 2025-09-19 18:51:40 +08:00
Euripedes Rocha
3ff7b48680 [MQTT] Simplifies MQTT CMakeLists file
- Uses mocks from tools instead of creating them.
- Move host based definition to test code.
2025-09-19 18:51:40 +08:00
Aditya Patwardhan
41782c4f17 mqtt/ssl_ds: Remove unwanted references to configure_ds.py, Also updated
the DS documentation
2025-09-19 18:51:40 +08:00
Aditya Patwardhan
f4f32e7b51 mqtt/ssl_ds: Add documentation on how to use esp-secure-cert-tool with
the example
2025-09-19 18:51:40 +08:00
Aditya Patwardhan
b0d5b719b6 mqtt/ssl_ds example: Update the code to use esp_secure_cert component 2025-09-19 18:51:40 +08:00
Aditya Patwardhan
bfa9a90d99 mqtt/ssl_ds example: Remove configure_ds.py script, use
esp-secure-cert-tool instread
2025-09-19 18:51:40 +08:00
Roland Dobai
3aa8307f03 Tools: Fix flake8 version 5 warnings 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
Alexey Lapshin
caa59d13d7 build system: re-add -Wno-format as private flag for some test_apps 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
Ivan Grokhotkov
54de87142c build system: re-add -Wno-format as private flag for some components 2025-09-19 18:51:40 +08:00
yuanjm
17df9effcd example: Add mqtt5 example 2025-09-19 18:51:40 +08:00
yuanjm
186dd8a18b test: Add mqtt5 unit-test 2025-09-19 18:51:40 +08:00
yuanjm
30c80f9631 mqtt: Add mqtt5 Kconfig 2025-09-19 18:51:40 +08:00
David Cermak
30b05ecead esp_netif/lwip: Fix deps cycles to "lwip -> esp_netif -> phy-drivers"
Fix dependency tree so that lwip doesn't depend on any specific network
interface component.
Network interface drivers shall depend on esp_netif.
esp_netif shall depend on lwip (but not on any specific interface
driver) -- it optionally depends on vfs and esp_eth (need ethernet
header for L2/bridge mode)
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
debc9962a1 CI: update test cases to use different environment variables
change test environments
optimize asio udp server test
fix icmp echo test case
use ethernet_router env to run iperf 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
Euripedes Rocha
4b884c421a [MQTT] - Adds esp-timer as dependency and change version.
- Current time is now from esp_timer.
2025-09-19 18:51:40 +08:00
Laukik Hase
ee67d87a90 ci: Fix mqtt_qos1 example test failure
- Updated log levels of some tags in mqtt/tcp example
  - Updated mqtt/tcp example test to work with WiFi
2025-09-19 18:51:40 +08:00
David Cermak
c6951764a2 mqtt: Update tests to start with valid transport 2025-09-19 18:51:40 +08:00
David Cermak
7d9a22b4d4 mqtt: Fix and add mqtt host test to CI 2025-09-19 18:51:40 +08:00
David Cermak
8f8090e4ac esp-netif: Make dependency on esp-eth optional
* esp-netif to optionally depend on esp-eth (only for l2tap config)
* esp_eth.h now includes the original ethernet header and the
ethernet-netif glue layer
* Updated examples and test to explicitely use esp-eth dependency if
needed
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
Jessy Chen
b2e3cc620a esp_wifi: optimize wifi kconfig 2025-09-19 18:51:40 +08:00
Mahavir Jain
537b53ad60 docs: Add esp_tls_errors.h to API reference list
Closes DOC-2797
2025-09-19 18:51:40 +08:00
Anton Maklakov
0edf4bee23 components: correct printf() placeholder for time_t
Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
2025-09-19 18:51:40 +08:00
Laukik Hase
6b188eab14 kconfig: Changed default values of bool configs
- Some bool configs were using default values true and false,
  instead of y and n.
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
Sagar Bijwe
3a3457eb66 Remove legacy system event framework. 2025-09-19 18:51:40 +08:00
Sudeep Mohanty
af6b3bb9fe esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2025-09-19 18:51:40 +08:00
Darian Leung
c1bc52fa31 freertos: Remove legacy hooks
This commit refactors the legacy hooks as follows:

- Removed CONFIG_FREERTOS_LEGACY_HOOKS
- FreeRTOS hooks are now enabled via:
    - CONFIG_FREERTOS_USE_IDLE_HOOK
    - CONFIG_FREERTOS_USE_TICK_HOOK
- Update IDF hooks documentation
2025-09-19 18:51:40 +08:00
David Cermak
64993a3270 esp_eth: Update esp32's EMAC API to decouple driver and vendor config 2025-09-19 18:51:40 +08:00
Aditya Patwardhan
841e8d7c60 configure_ds.py: Fix the error for prod mode. They script now only verifies the purpose in the prod mode.
Closes https://github.com/espressif/esp-idf/issues/8285
2025-09-19 18:51:40 +08:00
David Cermak
07f7376d1e ci/mqtt: Make publish test-app message properties configurable
Also increase the default sizes and repeat-counts to send more data and
exercise the library more intensly
2025-09-19 18:51:40 +08:00
David Cermak
0fe8646fd4 ci/mqtt: Fix weekend test publish-connect on target
* Fix thread safe issue in paho-mqtt library
* Move the weekend test to ethernet runner
2025-09-19 18:51:40 +08:00
David Cermak
d649af04a8 ci/mqtt: Move publish-connect test to ethernet runners 2025-09-19 18:51:40 +08:00