3060 Commits

Author SHA1 Message Date
5f72c0031d Have metrics collector return amount written (#428) 2020-11-28 15:31:24 -08:00
152b7db2c1 Add "Demo completed successfully" log in Jobs demo (#421) 2020-11-24 17:13:11 -08:00
e2652a8711 Add HTTP plaintext demo (#423)
Adds the HTTP plaintext demo from C SDK. No functionality is changed, but naming is updated appropriately. It is using freertos_plus_tcp plaintext transport implementation to send HTTP requests and then logs the response from the server.
2020-11-24 17:01:13 -08:00
ac1a10428b Porting HTTP Mutual Auth Demo from C-SDK (#414)
Add demo to establish a mutually-authenticated network connection with the server before sending and verifying a simple POST request.
* Add demo files
* Move all "Http_Demo_Helpers" files into Common
* Update project files and add vendor config files
* Update http_demo_utils.c after backoff updates
2020-11-24 19:09:04 -05:00
036ec83b65 Replace exponential_backoff with submodule to FreeRTOS/backoffAlgorithm (#419)
A new repository, FreeRTOS/backoffAlgorithm, has been created for hosting the library for backoff calculation. This repo replaces the FreeRTOS-Plus/Source/Utilities/exponential_backoff with the submodule to the new repository, and updates all the demos that use retry logic to use the backoffAlgorithm API
2020-11-24 14:54:31 -08:00
5ba1e4cf95 Clean up defender demo (#422) 2020-11-24 11:50:13 -08:00
ced1845508 Fix missing includes in defender demo (#418)
report_builder.c was missing FreeRTOS includes.
Additionally fixes root CA comments in AWS demos.
2020-11-23 16:57:44 -08:00
aad429ba09 Fix issues in CI check for header files with directories and .gitmodules (#420) 2020-11-23 13:08:15 -08:00
98b8fcd89d Remove certs from AWS demos + misc fixes (#415)
Removes the AWS IoT cert that is included in the demo_config.h files of the Shadow and Jobs demos.
Additionally fixes some typos.
2020-11-20 14:53:34 -08:00
2b4f8d4094 Port Defender demo from C-SDK (#407) 2020-11-19 18:29:37 -08:00
56a86428fe Preparation for coreHTTP demos (#413)
Adding common utilities that will be used by 4 coreHTTP demos:
- Adding coreHTTP submodule pointer to FreeRTOS-Plus/Source/Application-Protocols/coreHTTP
- Adding folder FreeRTOS-Plus/Demo/coreHTTP_Windows_Simulator/Http_Demo_Helpers with functions common to demos.
2020-11-19 20:03:59 -05:00
e313e286df Bump corePKCS11 submodule (#412)
* Move PKCS submodule forward.

* Use common mbed code.
2020-11-19 09:17:18 -08:00
0d0a88883a FR Header Checks: Update expected file header. Support ignores. (#410)
* Remove '1 tab == 4 spaces remarks' from check

* Add initial ignore mechanism. Ignore selfcheck
2020-11-18 15:30:28 -08:00
d59a4e4f3a Add helpful asterisk comments to the shadow demo. (#409)
* Add helpful asterisk comments to the shadow demo.

* Update FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/DemoTasks/ShadowDemoMainExample.c

* Add stuff to the license header for GHA checks.
2020-11-18 10:32:22 -08:00
fdc9d736b3 File Header Check/Diff Reporter + Companion Git Action (#408)
* Add checker for file headers

* file header check + git action
2020-11-17 15:37:58 -08:00
3dc4516ea1 Add device defender library submodule (#406) 2020-11-13 12:32:25 -08:00
ae1226b1bb Match WindowsTargetPlatformVersion across all MQTT VS Projects (#405)
Simply updates the Visual Studio projects so that WindowsTargetPlatformVersion is set to 10.0 for all MQTT demos.
2020-11-13 10:23:48 -08:00
c415143077 Add demo for AWS IoT Jobs library (#404) 2020-11-12 13:44:05 -08:00
6debf6a2c0 Add #ifndef guards for SdkLog definition to fix conflicting definitions (#403) 2020-11-12 11:10:12 -08:00
f06330768f Add Makefile project for RISC-V QEMU virtpc (#266)
* Add Makefile project for RISC-V QEMU virtpc

This patch adds simple demo directory for QEMU virtpc machine.
A demo just prints Tx/Rx message of queue to serial port, use no
other hardware and use only primary core (currently hart0).
Other cores are simply going to wfi state and execute nothing else.

Example command is:
  qemu-system-riscv32 -nographic -machine virt -net none \
    -chardev stdio,id=con,mux=on -serial chardev:con \
    -mon chardev=con,mode=readline -bios none \
    -kernel demo.elf -smp cpus=2 -s

* Fix copyright and URLS of FreeRTOS

* Fix Makefile

* Add Readme.md

* Separate blinky demo from main code

Co-authored-by: alfred gedeon <alfred2g@hotmail.com>
Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
Co-authored-by: Carl Lundin <53273776+lundinc2@users.noreply.github.com>
2020-11-11 15:35:21 -08:00
e96fd8b872 Changes to prepare for Jobs Library Demo (#401)
* Add submodule pointer to the aws/jobs-for-aws-iot-embedded-sdk repository for the Jobs library
* Commonize the MQTT helper functions used by the Device Shadow demo by re-locating them to FreeRTOS-Plus/Demo/AWS/MQTT_Demo_Helpers and updating the Device Shadow demo to use the new files
2020-11-11 09:34:59 -08:00
de26f7f2f4 [AUTO][RELEASE]: Bump kernel pointer "V10.4.2" 202011.00 2020-11-10 14:46:44 -08:00
07f3cbafee [AUTO][RELEASE]: Bump file header version to "202011.00" 2020-11-10 14:45:34 -08:00
d555cdd475 Fix incorrect size calculation in MT demo (#402) 2020-11-10 13:58:13 -08:00
4312eabeb9 Update FreeRTOS+TCP submodule pointer (#400) 2020-11-10 13:16:19 -08:00
82916bfda8 Manual version update - files not autoversioned with upcoming prefix (#399) 2020-11-10 12:03:12 -08:00
ef18289398 Simplify the mqtt multitasking demo a little (#398) 2020-11-10 11:29:23 -08:00
5f6464c22e Update urls in code to those on the server (#396)
* URLs have changed on the FreeRTOS.org site - this commit matches the URLs in the code with the new URLs on the website.

* Add link to device shadow directory to the shadow docs.

* Update main.c

* Update main.c

* Update readme.txt

* Update main.c

* Update main.c

* Update readme.txt

Co-authored-by: yngki <47755894+yngki@users.noreply.github.com>
2020-11-10 10:53:14 -08:00
1876800382 Print metadata only after a line break (#397)
* Fix logging stack to print message in the first SdkLog

* Do not log metadata if on the same line

* Fix wrong var name

* Change task names to DemoTask

* Change for shadow too

* Move declaration to a separate line

Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
2020-11-10 10:51:01 -08:00
9939374379 Update History.txt for 202011.00 (#388) 2020-11-10 08:57:07 -08:00
21878bd619 Allow overriding default definitions of logging macros (#384)
* Update logging_stack.h file to avoid use of __FUNCTION__ macro

* Revert to use __FUNCTION__ instead of __FILE__

* Fix comment about metadata format

* Fix incorrect mapping of SdkLog function

* Fix typo causing LOG_METADATA_ARGS to be undefined

* Fix another bug with SdkLog macro definition

* Fix formatting

* Move mapping of SdkLog to vLoggingPrintf from logging_stack to config files

* Remove dependency of LIBRARY_LOG_NAME on LIBRARY_METADATA_* macros

* Minor improvements

Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
Co-authored-by: RichardBarry <3073890+RichardBarry@users.noreply.github.com>
2020-11-09 15:07:19 -08:00
596b466300 Add code comments on the different requirements for credential constants between evaluation and production systems. (#386)
Only comments have changed.  No code changes.

Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
2020-11-09 14:56:52 -08:00
72e6c2ca92 Update thing name macro comment about usage of defined constants. (#387)
Co-authored-by: RichardBarry <3073890+RichardBarry@users.noreply.github.com>
2020-11-09 14:51:57 -08:00
5d3b3cb1c7 Multiple tidy up and corrections preparing for release (#390)
* Update to the WolfSSL FIPS ready demo:  Add a debug break point into the configASSERT() implementation along with a comment telling users how to update the integrity check hash if they hit the breakpoint.

* Updates in the root directory:  Remove "New - Stream and Message Buffers.url" as the feature is no longer new, and edit the readme.md file as the repo now contains 'core' libraries in addition to 'FreeRTOS+' libraries.

* FreeRTOS-Plus/Source/Utilities:  Add readme files and links to documentation.

* Application-Protocols:  Add readme and URL links.

* Remove Index.html from the end of a URL in the readme.txt file.

* Demo-IP-Protocols:  Add readme.txt files and code comments saying the protocols are not intended for production use.

* coreMQTT:  Remove links to deprecated documentation, add readme and correct links to documentation.

* General:  Correct URLs in source files and .url files.

* Update readme.txt
2020-11-09 14:50:33 -08:00
df082944e0 Update FreeRTOS+TCP submodule pointer (#395) 2020-11-09 14:45:43 -08:00
1261d4f1cc PKCS #11 URL update (#394)
* Revert "Update PKCS #11 URL. (#376)"

This reverts commit 88cf80d5d28c2b86e5f01e75b5cbb1b0e55a27f7.

* Update URLs.
2020-11-09 13:26:36 -08:00
2dc54b8c43 Add an include directory to the WinSim project "FreeRTOS_Plus_TCP_Minimal_Windows_Simulator" (#393)
Co-authored-by: Hein Tibosch <hein@htibosch.net>
2020-11-09 10:55:13 -08:00
52d7c47cd4 Fix logging issue causing mangled new lines (#391)
* Fix logging issue caused by using \n as the default newline character

* Update the other demos

* Fix accidentally changed NETWORK_INTERFACE

* Set \r\n as default instead

* Update sources to reflect \r\n change

* Get rid of configLOGGING_NEW_LINE altogether

Co-authored-by: abhidixi11 <44424462+abhidixi11@users.noreply.github.com>
2020-11-08 21:27:53 -08:00
54d549cd0e Fix wrong comments in shadow_demo_helpers.c (#392)
* Fix wrong comments in shadow_demo_helpers.c

* Fix file brief description in shadow_demo_helpers.c

* Revise the comment for democonfigMQTT_BROKER_ENDPOINT
2020-11-08 20:21:35 -08:00
b302a81ffd Filter mbedtls headers in Visual Studio Project for Shadow Demo (#389)
* Group mbedtls headers in Visual Studio Project Filters for Shadow

* Add missing source for mbedtls
2020-11-08 13:36:32 -08:00
be0818ff70 Automate entire release upload flow (#383)
Fully automated flow up to zip upload

add option to toggle https git endpoints

Remove mergetool buged prefix chars

appropriate rename root of zip dir. it persists in zip

Aesthetics - commit message indicate autocreation

packaging improvements

new '--git-org' option + minor refactor improvements
2020-11-06 10:41:01 -08:00
c7cd06488f Update path for WinSim logging port (#385)
Moves Logging_WinSim.c to a nested windows folder
2020-11-06 09:21:25 -08:00
01e59a036c Restructure platform directory (#382)
This updates the platform and logging directory and moves it to the following places:
FreeRTOS\FreeRTOS-Plus\Source\Utilities
FreeRTOS\FreeRTOS-Plus\Source\Application-Protocols\network_transport\freertos_plus_tcp

Project files are updated to follow suite. All updated demos are tested to work as expected.
2020-11-05 16:47:43 -08:00
330b8c002f Delete printf-stdarg.c and move logging.c from Source/Logging (#381)
printf-stdarg.c seems have to been moved by mistake when moving logging sources to a common folder.

Also, because logging.c is specific to Windows, it is moved to FreeRTOS-Plus/Demo/Common/Logging/Logging_WinSim.c.
2020-11-05 10:12:06 -08:00
698b2b46d6 Update the FreeRTOS+TCP submodule pointer (#379)
* Update the submodule pointer

* Update submodule pointer
2020-11-04 13:00:51 -08:00
98f1ec7c5f Update the submodule pointer (#378) 2020-11-04 10:17:25 -08:00
21bbf3ea46 Move kernel submodule forward. (#377)
Co-authored-by: Cobus van Eeden <35851496+cobusve@users.noreply.github.com>
2020-11-03 15:12:28 -08:00
6586b9b401 Update coreJSON submodule, and update call to JSON_Search API in Shadow demo (#375) 2020-11-03 13:47:28 -08:00
88cf80d5d2 Update PKCS #11 URL. (#376) 2020-11-03 12:50:10 -08:00
25cd833fd6 Rename platform files and submodules (#374)
This updates FreeRTOS-Plus/Source/Application-Protocols/platform folder based on feedback to include separate folders for tls and plaintext. In addition, the device-shadow-for-aws-iot-embedded-c submodule is renamed to device-shadow.
2020-11-03 11:51:02 -08:00