Commit Graph

981 Commits

Author SHA1 Message Date
David Cermak c0871b5be9 ci/mqtt: Move mqtt example tests to ethernet runners 2025-09-19 18:51:40 +08:00
laokaiyao e052687fc6 esp8684: rename target to esp32c2 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
Cao Sen Miao e6130a46cd CI: Enable ESP8684 build stage CI on master 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
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
Aditya Patwardhan c7ce57bb52 mqtt_test_app: Fix the invalid esp-tls error code values in mqtt test app 2025-09-19 18:51:40 +08:00
David Cermak 523934decf CI: Update mqtt test to cleanup connect-publish-URI interaction 2025-09-19 18:51:40 +08:00
Euripedes Rocha 699dd4fbce [MQTT/test] Fix publish connect test
- Mqtt client will return error on wrong parameters. This fix the test
  code to setup the client for each test case.
2025-09-19 18:51:40 +08:00
Sachin Billore 380f031a98 ESP32S3 support for ESP-MQTT SSL Mutual Authentication with Digital Signature
Closes IDF-3859
2025-09-19 18:51:40 +08:00
Zim Kalinowski 0d4f84fe7a upgrade freertos version and history 2025-09-19 18:51:40 +08:00
David Cermak 43cca8e25c CI: mqtt test apps: removed unnecessary env.yml 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 181e90fe5a CI: Prepare mqtt app test for QEMU tests
Adds qemu configuration
Generalize the get_dut() to enable choosing DUT class per configuration
2025-09-19 18:51:40 +08:00
David Cermak f962ac035f CI: Enable publish tests only when started from weekend pipeline 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
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
Marius Vikhammer 38cb3195e1 Support ESP32S3 Beta 3 target
Update ROM API. Port changes from bringup branch.
2025-09-19 18:51:40 +08:00
yuanjm a9c5cd15d1 tools: Update mqtt open source test server address 2025-09-19 18:51:40 +08:00
yuanjm f6629ff7e1 doc: Update mqtt open source test server address 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
Marius Vikhammer 3148f4c5dd CI: enable example builds for C3
Enables building C3 examples in CI.

Fixes related warnings/errors and disables examples that cannot run.
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
Aditya Patwardhan 13f6635a51 configure_ds.py: Fix double quoted strings ( pre_hook check ) 2025-09-19 18:51:40 +08:00
Aditya Patwardhan e64379783b esp32c3/Digital Signature: mbedtls integration through ESP-TLS 2025-09-19 18:51:40 +08:00
Aditya Patwardhan a25f7b73e4 configure_ds.py: Add function documentation for improving redability. 2025-09-19 18:51:40 +08:00
Aditya Patwardhan a3f9fea41f 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.
2025-09-19 18:51:40 +08:00
Euripedes Rocha Filho 3f2c411e37 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.
2025-09-19 18:51:40 +08:00
David Cermak cc72be6b57 ci/mqtt: Made MQTT test app tls insecure capable
This is needed for testing different connection modes in the mqtt
library, specifically:
* test case CONFIG_EXAMPLE_CONNECT_CASE_NO_CERT: default server - expect to connect normally
2025-09-19 18:51:40 +08:00
David Cermak ee05381ef5 Examples: MQTT DS example to use ds_peripheral API 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
David Cermak 0ba76d9de8 ci: Removed remaining binary size checks in app-tests
Also removes unused references to http-request app size in idf_performance.h
2025-09-19 18:51:40 +08:00
Aditya Patwardhan c8fa8e1cb0 Fixed typo in configure_ds.py script commmand. 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
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
Angus Gratton d24c85e783 cmake: Apply cmakelint fixes 2025-09-19 18:51:40 +08:00
morris ddb5e81a98 ci: add more build test for esp32-s3 2025-09-19 18:51:40 +08:00