1
0
mirror of https://github.com/FreeRTOS/coreMQTT synced 2025-06-12 06:02:25 +08:00

2 Commits

Author SHA1 Message Date
Oscar Michael Abrina
8b48da8f27 Add reconnection logic to all MQTT demos and update to use common transport interface (#1036)
* Get all unit tests to pass

* Update integration tests to common transport interface

* Update OpenSSL send and recv to poll

* Update OpenSSL send and recv

* Update plaintext demo to use common transport interface and removal of warnings

* Get mutual auth demo to compile but not returning successfully

* Remove usage of poll in OpenSSL transport send/recv

* Update based on latest changes to OpenSSL transport recv

* Make certs directory if not exist

* Add reconnection logic to mqtt basic tls demo

* Add reconnection logic to lightweight demo and update transport interface

* Make all demos consistent with each other

* Update CBMC proofs to follow suit

* Remove unnecessary includes

* Add missing time.h include to mqtt_demo_plaintext

* Remove unnecessary cast for network context buffer

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Address PR comments

* Refactor Clock_GetTimeMs into clock_posix.c

* Fix accidental replace

* Remove accidentally pushed certificate

* Remove time.h include from mqtt plaintext demo

* Update demos/mqtt/mqtt_demo_lightweight/mqtt_demo_lightweight.c

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Update demos/mqtt/mqtt_demo_mutual_auth/mqtt_demo_mutual_auth.c

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Update demos/mqtt/mqtt_demo_mutual_auth/mqtt_demo_mutual_auth.c

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Update demos/mqtt/mqtt_demo_mutual_auth/mqtt_demo_mutual_auth.c

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Address PR comments

* Address PR comments

* Fix error in fixing merge conflict

* Fix redefinition of NetworkContext_t in mqtt_config.h

* Fix PUBREC comment in demos/mqtt/mqtt_demo_basic_tls/mqtt_demo_basic_tls.c

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Fix PUBREC comment in demos/mqtt/mqtt_demo_basic_tls/mqtt_demo_basic_tls.c

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>

* Address PR comments

* Address PR comments

* Remove test assert for packet type != MQTT_PACKET_TYPE_PINGRESP

* Add back handling of MQTT_PACKET_TYPE_PINGRESP

* Add MQTT_PACKET_TYPE_PINGRESP log for mqtt system test

* Address PR comments

* Update library name of transport_posix

* Address PR comments and add reconnect logic changes

* Update comment in demos

* Remove accidentally pushed cert

* Update demos

* Add missing closing parenthesis

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>
2020-07-10 12:19:24 -07:00
Archit Aggarwal
92e5f74419 Fix issues with CMake setup for http and mqtt (#938) 2020-05-14 12:14:42 -07:00