Commit Graph
2791 Commits
Author SHA1 Message Date
Archit Aggarwal 655aa77404 Remove MQTT_ProcessLoop call not required (#329) final_LTS_development_snapshot 2020-10-09 10:03:50 -07:00
Tiangang Song c2a9775726 Sync OTA from latest AFR master branch (#320) 2020-10-05 15:00:12 -07:00
SarenaAWS 0e002d3263 Check the return value of MQTT_Disconnect in the demo loops (#318)
* Check the return value of MQTT_Disconnect and fix comment line lengths.
2020-10-05 13:23:55 -07:00
SarenaAWS 081d9ab3dc Delete unused header from PlaintextMQTTExample.c (#310)
Add the FreeRTOS_Sockets.h where it is needed in plaintext_freertos.h.
2020-10-05 13:21:10 -07:00
Muneeb Ahmed 5e76ff435b Add doc change missed from #305 (#316)
* Update notes on using ALPN in TLS demos
2020-10-02 17:06:38 -07:00
420c1e7838 Connection sharing demo reconnect and TLS (#305)
* Add reconnect logic and TLS options to demo

* Update demo config text

Co-authored-by: SarenaAWS <6563840+sarenameas@users.noreply.github.com>
Co-authored-by: Oscar Michael Abrina <abrinao@amazon.com>
2020-10-02 16:24:34 -07:00
Joshua Yan 9857c0b502 Update Mbed TLS to v2.16.8 from v2.16.7 (#309)
* Updated the git submodule pointer for Mbed TLS to point to v2.16.8.
* Updated the .gitmodules file to have the matching tag.
* No changes to the config file were required.
2020-10-01 14:28:56 -07:00
Oscar Michael Abrina 5ac89f6705 Add reconnection and resubscribe logic to the MQTT lightweight, keep alive, and mutual auth demos (#291)
This PR simply follows changes from PR #271: It copies changes from the plaintext demo and implements retries for the MQTT lightweight, keep alive, and mutual auth demos.

If a connect or subscribe attempt fails, vTaskDelay is called to make the task sleep for some bounded backoff period that doubles on each retry. In addition, SUBACK status codes are updated to support multiple topic filters. This way, if a SUBSCRIBE is sent for multiple topic filters and the broker returns 0x80 (a failure) for any of them, a SUBSCRIBE will attempt to be resent.
2020-09-27 12:00:44 -07:00
Muneeb Ahmed 3908920104 Connection Sharing Demo (#192)
* Multi threaded demo initial commit
2020-09-25 17:59:22 -07:00
Carl Lundin f98d3c5fb9 PKCS #11 LTS Update (#293)
* Add PKCS #11 mutual auth demo to readme.

* Submodule PKCS #11 Repo And Add PKCS #11 Code to Memory Size Tool
2020-09-25 15:10:59 -07:00
Oscar Michael AbrinaandMuneeb Ahmed 71f5984776 Add reconnection and resubscribe logic to the MQTT plaintext demo (#271)
This implements retries for FreeRTOS IoT Beta2 libraries, initializing the backoff to some value returned by the PRNG: uxRand(). If an attempt (connect or subscribe) fails, vTaskDelay is called to make the task sleep for some backoff period that doubles on each retry but is bounded.

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>
2020-09-17 17:12:43 -07:00
Oscar Michael Abrina 6a8bb87dec Add MQTT keep-alive demo (#182)
The MQTT keep-alive demo is similar to the plaintext demo with QoS0. The only difference is that it creates an auto-reload timer that invokes a callback responsible for sending a PINGREQ packet. The timer is reset whenever a control packet is sent. Because the keep-alive mechanism is handled by the application, MQTT_ReceiveLoop is used in place of MQTT_ProcessLoop.

* Add keep alive demo (no timer thread yet)

* feat: Add software timer that uses mutex for MQTT context (bad approach)

* feat: Serialize PINGREQ in separate buffer to avoid use of mutex

* fix: Use hungarian notation instead of _ for private vars

* fix: Remove unnecessary comment

* Address PR comments

* Reduce ulPingRespTimeoutMs to be as much as the timer interval

* Add wrapper function to check xWaitingForPingResp before resetting the timer
2020-08-28 09:49:11 -07:00
Carl Lundin b40b7b0f0c Ported PKCS #11 Mutual Auth Demo To Latest MQTT LTS Demo (#204)
* Ported PKCS #11 Mutual Auth Demo To Latest MQTT LTS Demo
* created freertos + mbed tls transport layer implementation using PKCS #11
* Added folder to beta 2 for PKCS #11
* Rename transport files ported to use PKCS #11 to make it clear that they are different to the regular implementation.
2020-08-27 09:55:41 -07:00
Muneeb Ahmed 262cdd9ae5 Sync MQTT files with 71df018b of CSDK (#205)
* Sync MQTT files with CSDK commit 71df018badd91f92b51f8923b820af9cc3567a23

* Update demos to use new callback signature
2020-08-19 16:30:59 -07:00
leegeth 6dda6d84f5 Update plain text transport interface (#200) 2020-08-14 09:32:29 -07:00
leegeth de4ab1180f MQTT mutual auth demo. (#176)
Demo for showing use of the MQTT API over a mutually authenticated connection.
2020-08-12 16:54:30 -07:00
leegeth 80bd2bab3c MbedTLS transport implementation (#175) 2020-08-05 09:38:32 -07:00
Archit Aggarwal a007d6fc90 Sync MQTT files from C-SDK repository (#174)
* Sync MQTT files with 156af10bae575ec500280e401b3d03d8759291f1 commit of C-SDK

* Update plaintext demo with changes to MQTT_Init API
2020-07-29 13:52:36 -07:00
Archit Aggarwal fce6ec479d Port CBMC recognized undefined behavior fixes from C-SDK v4_beta (#157) 2020-07-21 17:01:00 -07:00
Muneeb Ahmed 274a6c331d Add mqtt lts URL to all READMEs (#153) V200717_LTS_development_snapshot 2020-07-16 22:21:23 -07:00
Muneeb Ahmed 291821dce7 Update URL for new MQTT demo (#152) 2020-07-16 18:25:52 -07:00
Archit Aggarwal dfd17c928b Update naming for MQTT in ChangeLog for 200717_LTS_development_snapshot (#151) 2020-07-16 17:53:34 -07:00
RichardBarry 319dd912ca Update the readme files to be correct for the upcoming LTS snapshot z… (#141)
* Update the readme files to be correct for the upcoming LTS snapshot zip file - noting the differences between the Beta1 and Beta2 directories.
2020-07-16 17:52:37 -07:00
Archit AggarwalandMuneeb Ahmed 1b17e9ebf7 Add changelog file for V200717_LTS_development_snapshot releas (#149)
* Add changelog file for V200717_LTS_development_snapshot releas

* Minor punctuation changes from review comments

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

* More Changelog improvements based on review comments

Co-authored-by: Muneeb Ahmed <54290492+muneebahmed10@users.noreply.github.com>
2020-07-16 13:07:10 -07:00
Muneeb Ahmed 7e3193f537 Sync MQTT from fcac5b8f of CSDK development (#150) 2020-07-15 17:32:19 -07:00
Muneeb Ahmed e3c8583d60 Rename Transport Implementation and minor fixes (#145)
* Rename transport interface files

* Rename plaintext transport functions

* Address comments

* Add socket send timeout

* Set socket options after connection
2020-07-15 14:59:31 -07:00
Archit Aggarwal 0e789d21d5 Update hard-coded external Moqsuitto server cert to latest (#147) 2020-07-15 09:25:46 -07:00
leegeth ba170799ca Update plain text demo to use local broker (#142) 2020-07-15 09:03:54 -07:00
leegeth 5ee5e2a95d Update main.c logs to use logging stack (#146) 2020-07-14 16:33:10 -07:00
Archit Aggarwal ede4005182 Remove duplicated default config code, and documentation for new macros in FreeRTOS+TCP (#143) 2020-07-14 14:46:52 -07:00
Aniruddha Kanhere d915a7816f Add changes from 2225-2227 amazon-FreeRTOS (#134) (#140) 2020-07-14 09:30:02 -07:00
leegeth 6a8cdcdf3c MQTT Lightweight demo (#119) 2020-07-13 17:00:12 -07:00
Archit Aggarwal 28e0db8b3b Add support for new MQTT in memory estimator tool (#138)
* Add support for new MQTT in memory estimator tool

* Fix issues in generating memory estimate report for MQTT Beta2 library

* Update supported libraries' list in README for mqtt-beta1 and mqtt-beta libraries

* Add beta1 suffix for light-mqtt library in README
2020-07-13 11:01:11 -07:00
Tiangang Song 9db0f87358 Sync OTA from latest AFR 202007 release (#137) 2020-07-10 16:06:40 -07:00
Gary Wicker 47ced49201 Count only A records in DNS resolution logic (#135) 2020-07-10 15:36:31 -07:00
Muneeb Ahmed b98b75e312 Add transport interface and MQTT plaintext demo (#130)
* Add transport interface for FreeRTOS

* Add MQTT plaintext demo
2020-07-10 12:19:57 -07:00
Archit Aggarwal 5399d97814 Port fix for QoS 0 Sync Network disconnection issue (#125) 2020-07-08 22:05:01 -07:00
Muneeb Ahmed 2ee9fe649e Update MQTT files for network context (#133)
* Update MQTT files for network context

* Add transport interface header

* Update include path for lightweight demo
2020-07-08 19:11:13 -07:00
Joshua Yan 265d9d78d7 Update Mbed TLS to version v2.16.7 (#129)
* Update submodule pointer to be on v2.16.7 of Mbed TLS
* Update config file licenses
* Update readme.txt to include information on what Mbed TLS license the repo uses
2020-07-07 18:06:24 -07:00
Archit Aggarwal c5b6d727cf Update uncrustify.cfg to match aws/amazon-freertos style (#128)
* Remove uncrustify config for assignment operator alignment to match aws/aws-iot-embedded-c-device-sdk and aws/amazon-freertos configs; re-format files
2020-07-07 15:02:52 -07:00
leegethandArchit Aggarwal d67f2ad963 MQTT Beta2 demo support files. (#115)
Co-authored-by: Archit Aggarwal <architag@amazon.com>
2020-07-07 12:21:33 -07:00
leegeth 88851d326b Sync MQTT library files from C-SDK (#126)
This sync is based on commit ID e00212ecdec3e48a95842299435e5de72440c065
from C-SDK development branch.
2020-07-07 12:20:10 -07:00
Archit Aggarwal ad6ccfd0e7 Add execute permission to uncrustify file (#127) 2020-07-07 09:37:08 -07:00
alfred gedeonandAlfred Gedeon 6669a6f9bf Style: uncrustify FreeRTOS-Plus files (#120)
Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
2020-07-06 15:28:33 -07:00
Tiangang Song aa3fcbcb62 Fix return type of _establishMqttConnection (#112)
* Fix return type of _establishMqttConnection

* Fix document in OTA demo

* Fix build failures on microchip

* Add a log message in OTA demo
2020-07-01 16:24:37 -07:00
Muneeb Ahmed 57df8b8210 Copy MQTT files from 10174c4d of CSDK development (#111)
* Copy MQTT files from 6d4e47f3 of CSDK development

* Change case

* Update MQTT to commit a4ad8baf

* Update MQTT to commit 10174c4d
2020-06-30 16:57:50 -07:00
Carl Lundin 0bcbf43fee Sync PKCS #11 changes. (#113) 2020-06-30 16:54:25 -07:00
Archit Aggarwal d95edc9733 Rename FreeRTOS-IoT-Libraries directory (#109)
* Rename both Demo/FreeRTOS-IoT-Libraries and Source/FreeRTOS_IoT_Libraries directories to FreeRTOS-IoT-Libraries-LTS-Beta1

* Rename directories within IDE project and source files

* Remove backup files pushed to remote accidentally

* Remaining directory name replacements in file texts
2020-06-30 15:07:32 -07:00
Tiangang Song 67aeced8b8 Sync OTA library from AFR 202007.00 release to lts-development (#91)
* Sync OTA library from AFR 202006.00 release

* Support suspend and resume in OTA demo

* Sync OTA library from AFR 202007.00 release

* Update OTA config files for other projects

* In OTA demo, block thread if fail to activate image

* Disable downgrade in OTA by default

* Update OTA demo config to match from AFR

* Add an idle hook to OTA demo to prevent 100% CPU

* Fix OTA config format and a mistake from last commit
2020-06-26 12:08:05 -07:00
Muneeb Ahmed 1f46e79f02 Sync Keep Alive fix from C-SDK (#100) 2020-06-22 14:24:32 -07:00