Chen Yudong
1614af31a1
ci: update protocol/ethernet pytest markers
2025-09-19 18:51:40 +08:00
Chen Yudong
7f7dc2b3c6
fix(ci): change build-test-rules files folder
2025-09-19 18:51:40 +08:00
Armando
accb154b35
feat(ci): Enable p4 example, test_apps and unit tests CI build
2025-09-19 18:51:40 +08:00
Euripedes Rocha
07db66c669
fix(test/mqtt): Removes no-format from test_apps build
...
Allows warnings on mismatching format strings.
2025-09-19 18:51:40 +08:00
Euripedes Rocha
c0cd2199c9
ci: Migrateunit test for mqtt test to unit test app
...
- Split mqtt and mqtt5 tests
- Move common test code to a common component
- Add necessary python scripts
2025-09-19 18:51:40 +08:00
Cao Sen Miao
22e548f3ab
esp32h2: add build test
2025-09-19 18:51:40 +08:00
Euripedes Rocha
13c56ef791
[MQTT] - Moves compile definition out of idf
...
- MQTT build process is to be managed in esp-mqtt repository
- Componenf directory points directly to submodule, usage must be
unchanged
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
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
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
Ivan Grokhotkov
54de87142c
build system: re-add -Wno-format as private flag for some components
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
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
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
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
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
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
David Cermak
05231a9912
mqtt: Add docs on MQTT_CUSTOM_OUTBOX implentation
...
Closes https://github.com/espressif/esp-mqtt/issues/217
2025-09-19 18:51:40 +08:00
Jakob Hasse
92320ebdda
refactor (test_utils)!: separate file for memory check functions
...
Memory check (leaks and heap tracing) functions for unit tests
now have a separate file now and are renamed for more consistency.
BREAKING CHANGE: renamed memory check function names which may be used
in unit tests outside IDF.
2025-09-19 18:51:40 +08:00
David Cermak
98d60c9a00
MQTT: Add more tests
2025-09-19 18:51:40 +08:00
David Cermak
afb3c084f1
MQTT: Add more unit tests with actual broker
2025-09-19 18:51:40 +08:00
Darian Leung
947a4f0908
freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions
...
Add TRY_ENTRY_CRITICAL() API to all for timeouts when entering critical sections.
The following port API were added:
- portTRY_ENTER_CRITICAL()
- portTRY_ENTER_CRITICAL_ISR()
- portTRY_ENTER_CRITICAL_SAFE()
Deprecated legacy spinlock API in favor of spinlock.h. The following API were deprecated:
- vPortCPUInitializeMutex()
- vPortCPUAcquireMutex()
- vPortCPUAcquireMutexTimeout()
- vPortCPUReleaseMutex()
Other Changes:
- Added portMUX_INITIALIZE() to replace vPortCPUInitializeMutex()
- The assembly of the critical section functions ends up being about 50 instructions longer,
thus the spinlock test pass threshold had to be increased to account for the extra runtime.
Closes https://github.com/espressif/esp-idf/issues/5301
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
Zim Kalinowski
0d4f84fe7a
upgrade freertos version and history
2025-09-19 18:51:40 +08:00
Euripedes Rocha Filho
5cf3dad79a
mqtt: Adds host tests for mqtt client
2025-09-19 18:51:40 +08:00
liuhan
531329d262
transport: Add CONFI_WS_TRANSPORT for optimize the code size
2025-09-19 18:51:40 +08:00
David Cermak
9bc1e1a011
mqtt: Moved weekend tests to test apps
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
David Cermak
b3550c0fa2
ci: Add MQTT publish test to standard test apps
2025-09-19 18:51:40 +08:00
David Cermak
7faa1a99fe
ci: Extend the MQTT weekend test to check mqtt-enqueue api
2025-09-19 18:51:40 +08:00
David Cermak
8f5ebf26f4
MQTT: Add new config modes (outbox related, incremental id)
2025-09-19 18:51:40 +08:00
Axel Lin
121b7c7b13
MQTT: Restore default MQTT_OUTBOX_EXPIRED_TIMEOUT_MS to 30 sec
...
The OUTBOX_EXPIRED_TIMEOUT_MS was 30*1000 in original esp-mqtt code.
Don't change the default OUTBOX_EXPIRED_TIMEOUT_MS without good reason,
which may has impact on memory usage for existing applications.
Fixes: 8e50d4b3967f ("MQTT: add configurable msg expired timeout")
Signed-off-by: Axel Lin <axel.lin@gmail.com >
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
Jakob Hasse
4b6dedee6a
cmock: added cmock as component
...
* changing dependencies from unity->cmock
* added component.mk and Makefile.projbuild
* ignore test dir in gen_esp_err_to_name.py
* added some brief introduction of CMock in IDF
2025-09-19 18:51:40 +08:00
Marius Vikhammer
33f7fdf23b
MQTT: add configurable msg expired timeout
2025-09-19 18:51:40 +08:00
David Cermak
d0f8eb10f3
mqtt-tests: rename tests to match the actual group
2025-09-19 18:51:40 +08:00
David Cermak
ef9a2db815
mqtt: reenable outbox unit tests for esp32s2
2025-09-19 18:51:40 +08:00
Simon Brélivet
14be739764
esp_mqtt: add option to configure mqtt task priority.
...
Merges https://github.com/espressif/esp-idf/pull/4947
2025-09-19 18:51:40 +08:00