Commit Graph

17 Commits

Author SHA1 Message Date
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
David Cermak
caae6c4582 examples: make mqtt tcp example to report tcp-transport errno 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
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
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
Anton Maklakov
898d58b747 tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 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
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
David Cermak
e38e60f77e mqtt tests: connect to local broker when running in CI to make the tests more reliable 2025-09-19 18:51:40 +08:00
David Cermak
6b3ba4d55a mqtt: support for BEFORE_CONNECT event in idf
Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages
2025-09-19 18:51:40 +08:00
David Cermak
ab9698a3b4 MQTT: Integrate esp-mqtt library into idf
added docs and tests for mqtt library, small fixes (removed warnings, option for custom outbox, websocket bug fixed for longer transports). refactored to use common tcp_transport component, support for CMake build system.
Closes #2108
2025-09-19 18:51:40 +08:00