Commit Graph

210 Commits

Author SHA1 Message Date
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
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
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
leegeth
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
alfred 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
Aniruddha Kanhere
1c7c31e7a6 Update the TCP lib (#94) 2020-06-18 14:55:48 -07:00
Carl Lundin
fe3c62e476 Update PKCS #11 in LTS development branch. (#95) 2020-06-18 14:06:06 -07:00
Joshua Yan
8d14d06cca Submodule mbedTLS v2.16.6 (#93)
* Prepare for submoduling mbedTLS

* Add mbedTLS v2.16.6 as a submodule
2020-06-18 12:47:11 -07:00
Cobus van Eeden
dc491debe7 LTS-development-snapshot-202002.00
LTS development changes have Source, Demo, and dependencies added for FreeRTOS-IoT-Libraries. These libraries are using FreeRTOS kernel, FreeRTOS-Plus-TCP, and FreeRTOS-Plus-Trace of V10.3.0 tag. FreeRTOS_Plus_TCP and FreeRTOS_Plus_Trace are as used as is, but a few changes are made to FreeRTOS as listed below.

    Removed FreeRTOS/Demo.
    Updated FreeRTOS/readme.txt to remove mentions about the demos.
    Removed FreeRTOS/links_to_doc_pages_for_the_demo_projects.url file as there are no demos present.
2020-02-18 17:35:31 -08:00
Richard Barry
9c0c37ab9b Added back some TCP/IP stack port layer files. 2020-02-07 21:51:48 +00:00
Richard Barry
7cf721ccf7 2020-02-07 21:49:55 +00:00
Yuhui.Zheng
589dd9f149 Update version number in readiness for V10.3.0 release. Sync SVN with reviewed release candidate. 2020-02-07 20:14:50 +00:00
Richard Barry
8e5addee1e Update TCP to last release versions in preparation for kernel V10.3.0 release. 2020-02-06 22:45:37 +00:00
Richard Barry
7bea399061 Update libraries and sundry check-ins ready for the V10.3.0 kernel release. 2020-02-06 18:52:35 +00:00
Yuhui.Zheng
ec6f3d77c3 Sync FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP with the version in GitHub at (23665258cabe49d5d68ba23968b6845a7c80eb34).
Notes: 
- header has version 2.2.0. 
- This sync did not bring in ./test directory, though we should. 
- New NetworkInterfaces are introduced by this merge.
- Keil compiler support. 
- FreeRTOS_IP.h new API xApplicationGetRandomNumber().
- FreeRTOS_IP_Private.h new eIPEvent_t eNetworkTxEvent. 
- FreeRTOS_Stream_Buffer.h removing static xStreamBufferIsEmpty() and xStreamBufferIsFull().
- FreeRTOSConfigDefaults.h provides default ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS. 
- other type changes.
2020-01-31 00:07:53 +00:00
Richard Barry
4d4493e61a Remove the FreeRTOS-IoT-Libraries from FreeRTOS-Plus as it was an old copy with a newer copy in FreeRTOS-Labs. 2020-01-30 00:05:23 +00:00
Yuhui.Zheng
1deeb6dd84 Check socket binding result before doing anything with socket. (This is to address ARG findings.) Breaking the single return rule here, due to precedent violation at line 1039 and 1144.
prvTransferConnect() now returns:
- pdTRUE: everything's good. pdTRUE = 1.
- -pdFREERTOS_ERRNO_ENOMEM: FreeRTOS_socket() failed. -pdFREERTOS_ERRNO_ENOMEM = -12.
- -pdFREERTOS_ERRNO_EINVAL || -pdFREERTOS_ERRNO_ECANCELED: FreeRTOS_bind() failed. Negative values.

Thus, at line 569 and line 617, needs to check != pdTRUE instead of == pdFALSE.

This commit is done on behalf of Alfred.
2019-12-04 07:52:49 +00:00
Richard Barry
96bad0f6c3 Minor bug fix in NTPDemo.c -> use of FREERTOS_INVALID_SOCKET in place of NULL.
Update trace recorder code to account for uxPendedTicks renaming to xPendedTicks.
2019-09-04 00:13:17 +00:00
Richard Barry
b4c06085e1 Files as per 190725_FreeRTOS_IoT_Libs_Task_Pool_and_MQTT_Preview interim release. 2019-07-25 20:20:24 +00:00
Richard Barry
10b7b52995 Remove unnecessary include path from the MQTT demo. 2019-07-24 02:01:43 +00:00
Gaurav Aggarwal
38b6553abd Cosmetic changes in the MQTT demo - mostly comment updates. 2019-07-24 01:29:01 +00:00
Richard Barry
fe4511b35e Continued to work on the MQTT demo project.
A few review comments added into the MQTT implementation.
2019-07-24 00:27:14 +00:00
Richard Barry
53842d4cac Remove the simple UDP client/server tasks from the MQTT demo as the demo's network connection can be tested more easily just by pinging it.
Tidy up the iot_config.h header files a little.
2019-07-23 19:23:12 +00:00
Gaurav Aggarwal
95f60318d5 Cosmetic changes in the MQTT demo
- Fix warnings in the MQTT code.
- Update comments in the iot_config.h.
2019-07-23 18:20:06 +00:00
Gaurav Aggarwal
05e7d9cc08 Remove dependency on secure sockets
Network interface implementation for FreeRTOS now directly calls into
FreeRTOS+TCP instead of going via secure sockets.
2019-07-23 06:55:54 +00:00
Gaurav Aggarwal
68fd276886 Remove IotMqtt_Assert( pTaskPool == IOT_SYSTEM_TASKPOOL ) from MQTT code
The cut down version of the task pool has only one task pool, namely,
system task pool. All the task pool API functions accept NULL as a
valid parameter for IotTaskPool_t and use the system task pool when
NULL is passed for the system task pool.

IOT_SYSTEM_TASKPOOL is defined to NULL to use system task pool and
therefore the above assert is no longer valid.
2019-07-23 04:49:24 +00:00
Gaurav Aggarwal
8ea501ef11 Update projects to use the new directory name
IotTaskPool_GetSystemTaskPool has been removed from the cut down version
of the task pool. define IOT_SYSTEM_TASKPOOL to NULL so that the MQTT library
builds successfully.

Use the new #defines in the iot_config.h.
2019-07-23 04:16:32 +00:00
Gaurav Aggarwal
9dd72d4b44 Rename \FreeRTOS-Plus\Source\FreeRTOS-Plus-IoT-SDK to \FreeRTOS-Plus\Source\FreeRTOS-IoT-Libraries. 2019-07-23 03:41:27 +00:00
Richard Barry
7af8756c97 Update task pool so tasks and timer are allocated statically. 2019-07-23 01:46:59 +00:00
Richard Barry
1840d38abf Another backup check-in during process of optimising task pool for FreeRTOS. This checkin is prior to making the task pool statically allocated. 2019-07-23 00:00:37 +00:00