michael
5ba36d511f
ci: disable failed cases for s2 temporarily
2022-12-16 08:38:48 +01:00
David Cermak
650328b021
mqtt: example test to check connection with different ssl parameters
2022-12-16 08:38:48 +01:00
David Cermak
5be3f7b5d4
mqtt: add basic set of unit tests
2022-12-16 08:38:48 +01:00
Marius Vikhammer
0178bafba8
mqtt: update submodule to point to latest commit.
...
Adds bugfixes for:
- Too early publishing
- Potential mutex memory leak
- CI related issues.
- Wait for entire connack message
- Event loop not getting cleaned up
Adds support for ALPN, configurable reconnect time, QEMU CI tests and password
protected client key.
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/46
Closes IDF-1162
Closes https://github.com/espressif/esp-mqtt/issues/137
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/47
Closes IDF-1126
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/48
Closes IDFGH-2197
Closes https://github.com/espressif/esp-idf/issues/4349
Closes https://github.com/espressif/esp-mqtt/issues/140
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/48
Closes IDFGH-2235
Closes https://github.com/espressif/esp-idf/issues/4384
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/49
Closes https://github.com/espressif/esp-idf/issues/4433
Closes IDFGH-2293
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/50
Closes FCS-254
MQTT MR: https://gitlab.espressif.cn:6688/espressif/esp-mqtt/merge_requests/53
Closes FCS-267
2022-12-16 08:38:48 +01:00
David Cermak
8a24bebbc0
ci: updated mqtt weekend test for qemu support
...
Added default sdkconfig for qemu build for the mqtt publish example,
Added environment configuration for running the same test on target
or in qemu
Updated missing example tests per latest ttfw refactoring
2022-12-16 08:38:48 +01:00
David Cermak
62f3dc4705
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
2022-12-16 08:38:48 +01:00
Marius Vikhammer
6cadfe519b
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
2022-12-16 08:38:48 +01:00
David Cermak
37e511bef1
ci: fix weekend test confguration update per latest refactoring of
...
grouping tests
2022-12-16 08:38:48 +01:00
liu zhifu
b4ba09ce38
esp_wifi: wifi support new event mechanism
...
1. WiFi support new event mechanism
2. Update examples to use new event mechanism
2022-12-16 08:38:48 +01:00
Michael (XIAO Xufeng)
25f423d69b
ci: limit example test to ESP32s
2022-12-16 08:38:48 +01:00
David Cermak
5a50fc0812
esp_tls: enable psk verification mode, added mqtt example using psk authentication
2022-12-16 08:38:48 +01:00
David Cermak
bef4fce9c1
mqtt: referenced esp-mqtt master to close disconnection issues and fix static analysis warnings
...
closes https://github.com/espressif/esp-idf/issues/3619 including mqtt commit https://github.com/espressif/esp-mqtt/commit/7223302deb3ffefe60cc645c6d792fd5e4d6259c
closes https://github.com/espressif/esp-idf/issues/3215 including mqtt commit https://github.com/espressif/esp-mqtt/commit/caf5007b99df985b330683dfe2fa454c94633018
2022-12-16 08:38:48 +01:00
David Cermak
49296d851d
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
2022-12-16 08:38:48 +01:00
David Cermak
a903e5e3a9
esp-tls: capturing specific errors to be available in tcp_transport and then in application code
2022-12-16 08:38:48 +01:00
Renz Christian Bagaporo
63b3f29ffc
components: use new component registration api
2022-12-16 08:38:48 +01:00
Tuan
332fadfea6
esp_websocket_client: Add websocket client component
...
Closes https://github.com/espressif/esp-idf/issues/2829
2022-12-16 08:38:48 +01:00
David Cermak
3a2e82ec0f
mqtt: added support for esp event loop, updating examples to register and use event loop handler
2022-12-16 08:38:48 +01:00
David Cermak
7f77ad063d
mqtt_tests: add weekend test for sending and receiving empty payload messages, update config options per new naming convetions
2022-12-16 08:38:48 +01:00
David Cermak
6809fcb2df
tcp_transport: modified ws_read to read payload directly to the read buffer and separately from header bytes
...
Previous version read all data to the buffer including header which reduced maximum payload read. This version uses a local array to receive header and reads payload bytes to the buffer
2022-12-16 08:38:48 +01:00
David Cermak
6b70e14236
mqtt tests: adding weekend test for mqtt library to exercise publishing/receiving different data and references esp-mqtt commits to pass these tests
...
testing conditions:
transports (tcp, ssl, ws..)
qos (0, 1, 2)
short repeated messages (packed packets)
oversized messages (fragmented packets)
publish from a different thread
Closes https://github.com/espressif/esp-idf/issues/2870 by means of including commit 815623dfe5 from esp-mqtt
Closes https://github.com/espressif/esp-idf/issues/2975 by means of including commit 752953dc3b from esp-mqtt
Closes https://github.com/espressif/esp-idf/issues/2850 by means of including commits df455d2a5f 17fd713bce from esp-mqtt
2022-12-16 08:38:48 +01:00
morris
e19b9aa2df
separate rom from esp32 component to esp_rom
...
1. separate rom include files and linkscript to esp_rom
2. modefiy "include rom/xxx.h" to "include esp32/rom/xxx.h"
3. Forward compatible
4. update mqtt
2022-12-16 08:38:48 +01:00
Roland Dobai
9726859fa3
Correct Kconfigs according to the coding style
2022-12-16 08:38:48 +01:00
David Cermak
7437dce403
mqtt: support for BEFORE_CONNECT event in idf
...
Updated examples to use new event id, idf to use mqtt with fixed retained, oversized messages
2022-12-16 08:38:48 +01:00
David Cermak
60e39865e6
mqtt: ssl mutual authentication example added per PR from github, corrected cmake build, updated per idf style
...
Merges https://github.com/espressif/esp-idf/pull/2490
2022-12-16 08:38:48 +01:00
Anton Maklakov
14e9df14ff
tcp_transport: Remove the ignore warning because we had idf/esp-idf!3359
2022-12-16 08:38:48 +01:00
David Cermak
a31ede754f
tcp_transport: transport set handle refactoring, web socket client name updated
2022-12-16 08:38:48 +01:00
David Cermak
229167f48a
tcp_transport: renamed possibly generic function names to be esp_ prefixed and not to colide with user namespace
2022-12-16 08:38:48 +01:00
David Cermak
71d6861d6a
tcp_transport: renamed transport related header files to esp_ prefixed to avoid collisions
...
tcp_transport component used public header files such as 'transport.h', etc. which are too generic and might collide with user or user libraries headers
This change closes #2417
2022-12-16 08:38:48 +01:00
Angus Gratton
78233fe7de
doc: Re-add summaries of what children each menu item has
...
Slightly different to the original version of this, but same goal.
2022-12-16 08:38:48 +01:00
Anton Maklakov
1d49ac3249
mqtt: silence a format warning
2022-12-16 08:38:48 +01:00
Renz Bagaporo
20dda12b88
mqtt: list files manually in component cmake file
2022-12-16 08:38:48 +01:00
David Cermak
24b656ca4b
MQTT: Moved Kconfig from esp-mqtt submodule to esp-idf to support docs genration in RTD
2022-12-16 08:38:48 +01:00
David Cermak
c5069977a4
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
2022-12-16 08:38:48 +01:00
David Čermák
d5a2c0a7c6
Merge branch 'bugfix/subscribe_error_detection' into 'master'
...
Fix error code verification on SUBSCRIBE error
See merge request espressif/esp-mqtt!155
2022-12-15 18:59:01 +08:00
Euripedes Rocha
d1f6ad23b7
Fix error code verification on SUBSCRIBE error
...
- Return codes other than 0x1, 0x2, 0x3 and 0x80 are reserved and
forbidden by the specification.
2022-12-05 15:22:48 +01:00
David Čermák
fde00340f1
Merge branch 'bugfix/event_queue_disabled_deafult' into 'master'
...
Fix the default configuration for event queue
See merge request espressif/esp-mqtt!153
2022-11-23 22:17:25 +08:00
Rocha Euripedes
fb42588a03
Fix the default configuration for event queue
...
- Event queue should be disabled, making it an opt-in feature.
2022-11-23 20:40:31 +08:00
David Čermák
3e0a118e0b
Merge branch 'bugfix/missing_header' into 'master'
...
Adds missing header.
See merge request espressif/esp-mqtt!152
2022-11-04 00:26:54 +08:00
Euripedes Rocha
8a6005781d
Adds missing header.
...
- esp_heap_caps is directly needed and wasn't included.
- For target it's indirecly included but for host test it's needed.
2022-11-03 15:26:43 +01:00
David Čermák
e80f3e6a87
Merge branch 'bugfix/stop_in_wait_reconnection' into 'master'
...
Moves state change when stopping the client
See merge request espressif/esp-mqtt!150
2022-10-26 21:19:00 +08:00
Euripedes Rocha
3738fcd196
Moves state change when stopping the client
...
- In some situations client could be left in a state where it's
impossible to restart due to a state change while waiting for the
stop. This guarantee that it's possible to start after calling stop.
Closes https://github.com/espressif/esp-mqtt/issues/239
2022-10-26 14:37:28 +02:00
David Čermák
5f297c0d62
Merge branch 'bugfix/set_error_on_subscribe_failure' into 'master'
...
Adds error code to MQTT_EVENT_SUBSCRIBED in case of failure
See merge request espressif/esp-mqtt!143
2022-10-21 23:46:02 +08:00
Euripedes Rocha
9af5c26045
Adds error code to MQTT_EVENT_SUBSCRIBED in case of failure
...
- Payload data parsed for error codes. Check only for first filter
because our subscribe function only handle one topic filter in each
call.
- Closes https://github.com/espressif/esp-mqtt/issues/233
2022-10-20 13:29:16 +02:00
David Čermák
2b52b50a6b
Merge branch 'feature/debug_retry' into 'master'
...
Adds debug information on sending dup messages
See merge request espressif/esp-mqtt!145
2022-10-04 13:15:50 +08:00
Euripedes Rocha
47b3f9b899
Adds debug information on sending dup messages
...
- To support debug of resending dup messages QoS 1 and 2 a debug
log was added.
2022-10-03 07:43:01 +00:00
David Čermák
a87fd9c738
Merge branch 'bugfix/ci_qemu' into 'master'
...
ci: Fix qemu build
See merge request espressif/esp-mqtt!147
2022-09-30 22:44:15 +08:00
David Cermak
68e8c4f829
ci: Fix qemu build
2022-09-30 16:14:36 +02:00
David Čermák
5688a84cbc
Merge branch 'bugfix/extend_ci_idf_v5.1' into 'master'
...
ci: Build and Test QEMU on v5.0
See merge request espressif/esp-mqtt!142
2022-08-19 23:45:43 +08:00
David Cermak
9db9ee7648
ci: Build and Test QEMU on v5.0
...
* Patch the QEMU build
* Use public containers for build only tests on v5.0 and master
2022-08-18 16:51:16 +02:00
David Čermák
5f3cadb44d
Merge branch 'bugfix/user_events' into 'master'
...
client: Add support for user events
See merge request espressif/esp-mqtt!140
2022-08-16 21:30:58 +08:00