Commit Graph
412 Commits
Author SHA1 Message Date
David Čermák bb9c8af9d5 Merge branch 'backport/stop_in_wait_reconnect_idf4x' into 'idf_v4.x'
Backport Moves state change when stopping the client

See merge request espressif/esp-mqtt!151
2022-10-26 21:56:35 +08:00
Euripedes Rocha af58f5f2e5 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:41:01 +02:00
David Čermák e7e1ebc292 Merge branch 'backport/ping_timer_restart' into 'idf_v4.x'
fix: MQTT tick not starting on connect and switch to esp_timer

See merge request espressif/esp-mqtt!146
2022-10-26 20:31:36 +08:00
Euripedes Rocha 166741fd6d fix: MQTT tick not starting on connect and switch to esp_timer
- Tick should be updated on connect
- Dependency of system timer removed to avoid issues when updating via
  SNTP

Closes https://github.com/espressif/esp-idf/issues/9492
2022-10-26 12:50:34 +02:00
David Čermák 64cd608307 Merge branch 'bugfix/ci_fix_build' into 'idf_v4.x'
ci: Fix CI build using public IDF images

See merge request espressif/esp-mqtt!148
2022-10-03 15:36:21 +08:00
David Cermak 530fe3a590 ci: Fix CI build using public IDF images 2022-09-30 16:37:09 +02:00
David Čermák 60983d1dd5 Merge branch 'bugfix/fix_esp_mqtt_client_enqueue_idf4.x' into 'idf_v4.x'
[Backport] mqtt_client: fix esp_mqtt_client_enqueue for len=0

See merge request espressif/esp-mqtt!144
2022-09-14 12:59:42 +08:00
Craig Kewley e918742edd mqtt_client: fix esp_mqtt_client_enqueue for len=0
Commit 372b323 (mqtt_client: Fix mqtt send long data error, 2021-12-21)
removed the length calculation from esp_mqtt_client_enqueue_priv and
added it to esp_mqtt_client_publish. However, esp_mqtt_client_enqueue
was missed. Currently calls to esp_mqtt_client_enqueue appear to send no
data, fix this by adding the length calculation to esp_mqtt_client_enqueue.
2022-09-12 14:51:27 +02:00
David Čermák 27eb472606 Merge branch 'bugfix/mqtt_fix_int_sign_mismatch_v4' into 'idf_v4.x'
MQTT: Fix signature matching for integer values (Backport to idf_v4.x)

See merge request espressif/esp-mqtt!133
2022-05-24 19:32:13 +08:00
gabsuren f16200201e MQTT: Fix signature matching for integer values
Closes https://github.com/espressif/esp-idf/issues/8482
2022-05-20 15:21:47 +02:00
David Cermak ee5ecad6c1 ci: Deploy idf_v4.x branch to GitHub
Also fixes the CI (removing v5.0 test, simplifying qemu test to only
execute connection testing)
2022-05-20 15:20:53 +02:00
David Čermák 985078affa Merge branch 'bugfix/ci_image_update' into 'master'
Isolate IDF env for v4.4 and v5.0(master)

See merge request espressif/esp-mqtt!111
ESP-MQTT_FOR_IDF_4.x
2022-01-17 14:00:56 +00:00
David Cermak 4c5a65c79e ci: Isolate IDF env for v4.4 and v5.0(master) 2022-01-17 13:55:06 +01:00
David Čermák b021fc8e30 Merge branch 'bugfix/remove_legacy_freertos_types_usage' into 'master'
Client: Remove usage of legacy FreeRTOS types

See merge request espressif/esp-mqtt!120
2022-01-17 11:32:20 +00:00
David Cermak c28a56ddb0 ci: Fix build issues with IDF-4.4 against master
IDF env docker image (v4.4-1) became incompatible with IDF master (v5.0)
2022-01-17 10:22:27 +01:00
Darian Leung 6ef98d6510 Client: Remove usage of legacy FreeRTOS types 2022-01-13 00:34:53 +08:00
David Čermák 026253d802 Merge branch 'bugfix/fix_mqtt_send_long_data_error' into 'master'
mqtt_client: Fix mqtt send long data error

See merge request espressif/esp-mqtt!117
2021-12-22 02:15:33 +00:00
yuanjm 372b323535 mqtt_client: Fix mqtt send long data error
Closes https://github.com/espressif/esp-mqtt/issues/214
2021-12-21 15:31:56 +08:00
David Čermák 383e7e5f0f Merge branch 'bugfix/fix_enqueue_api' into 'master'
Client: Fix use esp_mqtt_client_enqueue API to send data, data dup flag will be set 1

See merge request espressif/esp-mqtt!116
2021-12-06 12:01:07 +00:00
yuanjm df8dc92870 Client: Fix use esp_mqtt_client_enqueue API to send data, data dup flag will be set 1 2021-11-26 15:52:04 +08:00
David Čermák b86d42c130 Merge branch 'feature/mqtt_client_with_null_id' into 'master'
Adds the possibilty of client with empty id

See merge request espressif/esp-mqtt!114
2021-11-03 09:58:39 +00:00
David Cermak 08c4d62bf4 CI: Fix standard gitlab key 2021-11-03 09:30:08 +01:00
Euripedes Rocha 09287a1156 Removes redundant field on mqtt state
Client connection_info was unnecessarilly repeated. Removed from
mqtt_state and kept on mqtt_client.
2021-11-01 18:17:29 +01:00
Euripedes Rocha 1fd50dd2cb Adds a config flag to allow an empty client id
This commit covers a use case where the user can select to send an
empty user id.
2021-11-01 18:17:29 +01:00
David Čermák 36de30e46d Merge branch 'bugfix/send_diconnect_msg' into 'master'
Client: Disconnect/Reconnect improvements

See merge request espressif/esp-mqtt!113
2021-10-21 08:34:15 +00:00
David Cermak 320b058e28 CI: Adjust jobs for testing IDFs, cleanup
Removes CI jobs for static analysis and reports as they are not primarily used
2021-10-21 08:39:59 +02:00
David Cermak 3f05b1aedc Client: Fix reconnect/disconnect if auto_reconnect=off
Closes https://github.com/espressif/esp-mqtt/issues/206
2021-10-06 17:46:32 +02:00
David Cermak 86e40f8615 Send disconnect message if client asked to disconnect
https://github.com/espressif/esp-mqtt/issues/208
2021-10-06 17:46:32 +02:00
David Čermák 5ec3702881 Merge branch 'feature/add_suback_payload_flags_to_events' into 'master'
Events: Support qos/dup flags and suback payload in mqtt events (GitHub PR)

See merge request espressif/esp-mqtt!112
2021-10-04 10:53:17 +00:00
Bert Melis de47f1c341 add payload to MQTT_EVENT_SUBSCRIBE
+ documentation
+ cleanup logging

Closes https://github.com/espressif/esp-mqtt/issues/200
Merges https://github.com/espressif/esp-mqtt/pull/203
2021-10-04 10:38:02 +02:00
Bert Melis e1d5a9402f add qos and dup to MQTT_EVENT_DATA 2021-09-23 18:09:39 +02:00
David Čermák 89894bd0c6 Merge branch 'feature/configurable_retransmit' into 'master'
Add configurable retransmit (GitHub PR)

See merge request espressif/esp-mqtt!110
2021-09-15 18:10:50 +00:00
David Čermák 1d10608409 Merge branch 'feature/set_config_error_reporting' into 'master'
Reports config conflicts error to the user

See merge request espressif/esp-mqtt!102
2021-09-15 16:46:35 +00:00
David Čermák d7b00da517 Merge branch 'bugfix/mqtt_check_certbundle' into 'master'
Fix build issue if cert bundle disabled (GitHub PR)

See merge request espressif/esp-mqtt!109
2021-09-15 16:46:13 +00:00
Umer Ilyas 1b009c840b Config: Add configurable retransmit timeout
sometime user want to configure retransmit timeout due to network or other requirement

Merges https://github.com/espressif/esp-mqtt/pull/199
2021-09-15 18:43:23 +02:00
Euripedes Rocha 88f4b8ed50 Reports config conflicts error to the user
- Configuration conflicts were verified, logged but not reported to the
  user.
2021-09-15 15:09:23 +08:00
David Cermak 5b3c81ee48 Config: Fix build issue if WS/WSS transport disabled
Closes https://github.com/espressif/esp-idf/issues/7535
2021-09-10 09:15:41 +02:00
David Cermak 1b71980575 Config: Add error message if certbunde is not enabled
Merges https://github.com/espressif/esp-mqtt/pull/198
2021-09-07 15:42:11 +02:00
fractal-def 4a89bff610 Check CONFIG_MBEDTLS_CERTIFICATE_BUNDLE is set
Fixes a compilation error where `esp_transport_ssl_crt_bundle_attach` is undefined in this scenario.
2021-08-10 15:02:35 -06:00
David Čermák 026ea95338 Merge branch 'remove_outbox_cleanup_function' into 'master'
Removes unnecessary outbox_cleanup

See merge request espressif/esp-mqtt!108
2021-07-09 16:13:48 +00:00
David Čermák c11c314f44 Merge branch 'bugfix/report_enqueue_error' into 'master'
Fix: Return an error when fail to enqueue

See merge request espressif/esp-mqtt!103
2021-07-09 16:12:55 +00:00
Euripedes Rocha ebef896b00 Removes unnecessary outbox_cleanup
The states that were cleaned by this function, CONFIRMED, are no longer reachable.
Itens were marked with this status previously in PUBCOMP and PUBREL
receive handlers.
2021-07-01 14:40:45 +01:00
Euripedes Rocha 7471177fe7 Fix: Return an error when fail to enqueue
The functions that enqueue messages didn't had a return for the
handler, with this the error was only logged instead of returned which
may cause the user to have an ID for a message that was not published.
2021-07-01 09:29:58 +01:00
David Čermák e24852a4dc Merge branch 'bugfix/qemu_image_esp_env' into 'master'
CI: Use qemu image based on esp-env:v4.4-1

See merge request espressif/esp-mqtt!107
2021-06-28 08:16:56 +00:00
David Cermak 231b274962 CI: Use qemu image based on esp-env:v4.4-1 2021-06-28 08:15:10 +02:00
David Čermák f10321a53b Merge branch 'bugfix/remove_unnecessary_parenteses' into 'master'
Remove unnecessary parentheses.

See merge request espressif/esp-mqtt!101
2021-06-24 17:22:30 +00:00
Euripedes Rocha db13533904 Remove unnecessary parentheses.
- Removed extra parentheses on definition of certificate bundle attach.
2021-06-24 18:35:26 +02:00
David Čermák 831d25cb56 Merge branch 'update/qemu_test_IDFv4.3' into 'master'
CI: Update QEMU image and test against IDF v4.4-dev (plus minor fixes)

See merge request espressif/esp-mqtt!104
2021-06-24 16:34:31 +00:00
David Cermak a7e5accc7e CI: Temporariy update QEMU image with python 3.7.0
This will be removed once we updated QEMU image, based on the new CI
environment docker image.
2021-06-24 16:34:22 +02:00
David Cermak 90f0bf8dd4 Updated docker images to work with latest IDFv4.4 2021-06-24 07:40:43 +02:00