From a3f42a78e7c2f9f6e04e59b7b475541933f6d1a2 Mon Sep 17 00:00:00 2001 From: Tony Josi Date: Fri, 17 May 2024 11:29:10 +0530 Subject: [PATCH] Fleet provisioning winsim demo - fix warnings and reduce demo path length (#1222) * Rename .\FreeRTOS-Plus\Demo\AWS\Fleet_Provisioning_Windows_Simulator\Fleet_Provisioning_With_CSR_Demo\ to .\FreeRTOS-Plus\Demo\AWS\Fleet_Provisioning_Windows_Simulator\CSR_Demo\ to reduce path length limit on Windows (260) * Fix warnings in fleet provisioning demo * Update path in CI actions script * Fix formatting --- .github/workflows/freertos_plus_demos.yml | 2 +- .../DemoSetup/cloudformation_template.json | 0 .../DemoSetup/convert_credentials_to_der.py | 0 .../DemoSetup/demo_cleanup.py | 0 .../DemoSetup/demo_config.templ | 0 .../DemoSetup/demo_config_empty.templ | 0 .../DemoSetup/demo_setup.py | 0 .../DemoSetup/example_claim_policy.json | 0 .../DemoSetup/example_fleet_provisioning_template.json | 0 .../DemoSetup/example_iot_thing_policy.json | 0 .../DemoSetup/generate_credentials.py | 0 .../FleetProvisioningDemoExample.c | 4 ++++ .../core_mqtt_config.h | 0 .../demo_config.h | 0 .../fleet_provisioning_config.h | 0 .../fleet_provisioning_demo.sln | 0 .../fleet_provisioning_demo.vcxproj | 0 .../fleet_provisioning_demo.vcxproj.filters | 0 .../{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/main.c | 1 + .../pkcs11_operations.c | 1 - .../pkcs11_operations.h | 0 .../tinycbor_serializer.c | 0 .../tinycbor_serializer.h | 0 .../Demo/AWS/Mqtt_Demo_Helpers/mqtt_pkcs11_demo_helpers.c | 4 ++++ 24 files changed, 10 insertions(+), 2 deletions(-) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/cloudformation_template.json (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/convert_credentials_to_der.py (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/demo_cleanup.py (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/demo_config.templ (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/demo_config_empty.templ (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/demo_setup.py (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/example_claim_policy.json (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/example_fleet_provisioning_template.json (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/example_iot_thing_policy.json (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/DemoSetup/generate_credentials.py (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/FleetProvisioningDemoExample.c (99%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/core_mqtt_config.h (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/demo_config.h (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/fleet_provisioning_config.h (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/fleet_provisioning_demo.sln (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/fleet_provisioning_demo.vcxproj (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/fleet_provisioning_demo.vcxproj.filters (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/main.c (98%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/pkcs11_operations.c (99%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/pkcs11_operations.h (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/tinycbor_serializer.c (100%) rename FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/{Fleet_Provisioning_With_CSR_Demo => CSR_Demo}/tinycbor_serializer.h (100%) diff --git a/.github/workflows/freertos_plus_demos.yml b/.github/workflows/freertos_plus_demos.yml index 583b89193d0..684111dd038 100644 --- a/.github/workflows/freertos_plus_demos.yml +++ b/.github/workflows/freertos_plus_demos.yml @@ -956,7 +956,7 @@ jobs: - env: stepName: Build AWS IoT Fleet Provisioning Demo name: ${{ env.stepName }} - working-directory: FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo + working-directory: FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo run: | # ${{ env.stepName }} echo "::group::${{ env.stepName }}" diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/cloudformation_template.json b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/cloudformation_template.json similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/cloudformation_template.json rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/cloudformation_template.json diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/convert_credentials_to_der.py b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/convert_credentials_to_der.py similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/convert_credentials_to_der.py rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/convert_credentials_to_der.py diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_cleanup.py b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_cleanup.py similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_cleanup.py rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_cleanup.py diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_config.templ b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_config.templ similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_config.templ rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_config.templ diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_config_empty.templ b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_config_empty.templ similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_config_empty.templ rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_config_empty.templ diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_setup.py b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_setup.py similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/demo_setup.py rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/demo_setup.py diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/example_claim_policy.json b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/example_claim_policy.json similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/example_claim_policy.json rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/example_claim_policy.json diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/example_fleet_provisioning_template.json b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/example_fleet_provisioning_template.json similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/example_fleet_provisioning_template.json rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/example_fleet_provisioning_template.json diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/example_iot_thing_policy.json b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/example_iot_thing_policy.json similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/example_iot_thing_policy.json rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/example_iot_thing_policy.json diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/generate_credentials.py b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/generate_credentials.py similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/DemoSetup/generate_credentials.py rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/DemoSetup/generate_credentials.py diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/FleetProvisioningDemoExample.c b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/FleetProvisioningDemoExample.c similarity index 99% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/FleetProvisioningDemoExample.c rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/FleetProvisioningDemoExample.c index 05ace5c7d8f..c8e75dd0a6c 100644 --- a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/FleetProvisioningDemoExample.c +++ b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/FleetProvisioningDemoExample.c @@ -291,6 +291,10 @@ static bool prvUnsubscribeFromRegisterThingResponseTopics( void ); static int prvFleetProvisioningTask( void * pvParameters ); +/*-----------------------------------------------------------*/ + +BaseType_t xPlatformIsNetworkUp( void ); + /*-----------------------------------------------------------*/ static void prvProvisioningPublishCallback( MQTTContext_t * pxMqttContext, diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/core_mqtt_config.h b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/core_mqtt_config.h similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/core_mqtt_config.h rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/core_mqtt_config.h diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/demo_config.h b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/demo_config.h similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/demo_config.h rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/demo_config.h diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_config.h b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_config.h similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_config.h rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_config.h diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_demo.sln b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_demo.sln similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_demo.sln rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_demo.sln diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_demo.vcxproj b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_demo.vcxproj similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_demo.vcxproj rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_demo.vcxproj diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_demo.vcxproj.filters b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_demo.vcxproj.filters similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/fleet_provisioning_demo.vcxproj.filters rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/fleet_provisioning_demo.vcxproj.filters diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/main.c b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/main.c similarity index 98% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/main.c rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/main.c index ba12350ac9a..7fc4756d971 100644 --- a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/main.c +++ b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/main.c @@ -54,6 +54,7 @@ /*-----------------------------------------------------------*/ extern void vStartFleetProvisioningDemo( void ); +extern void vPlatformInitIpStack( void ); /*-----------------------------------------------------------*/ diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/pkcs11_operations.c b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/pkcs11_operations.c similarity index 99% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/pkcs11_operations.c rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/pkcs11_operations.c index 9d7ee97f666..4cf1af25f49 100644 --- a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/pkcs11_operations.c +++ b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/pkcs11_operations.c @@ -214,7 +214,6 @@ bool xGenerateKeyAndCsr( CK_SESSION_HANDLE xP11Session, CK_OBJECT_HANDLE xPubKeyHandle; CK_RV xPkcs11Ret = CKR_OK; mbedtls_pk_context xPrivKey; - mbedtls_ecdsa_context xEcdsaContext; mbedtls_x509write_csr xReq; int32_t ulMbedtlsRet = -1; const mbedtls_pk_info_t * pxHeader = mbedtls_pk_info_from_type( MBEDTLS_PK_ECKEY ); diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/pkcs11_operations.h b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/pkcs11_operations.h similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/pkcs11_operations.h rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/pkcs11_operations.h diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/tinycbor_serializer.c b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/tinycbor_serializer.c similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/tinycbor_serializer.c rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/tinycbor_serializer.c diff --git a/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/tinycbor_serializer.h b/FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/tinycbor_serializer.h similarity index 100% rename from FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo/tinycbor_serializer.h rename to FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo/tinycbor_serializer.h diff --git a/FreeRTOS-Plus/Demo/AWS/Mqtt_Demo_Helpers/mqtt_pkcs11_demo_helpers.c b/FreeRTOS-Plus/Demo/AWS/Mqtt_Demo_Helpers/mqtt_pkcs11_demo_helpers.c index 1c7a6bfabe5..e284a5df028 100644 --- a/FreeRTOS-Plus/Demo/AWS/Mqtt_Demo_Helpers/mqtt_pkcs11_demo_helpers.c +++ b/FreeRTOS-Plus/Demo/AWS/Mqtt_Demo_Helpers/mqtt_pkcs11_demo_helpers.c @@ -359,6 +359,10 @@ static MQTTStatus_t prvProcessLoopWithTimeout( MQTTContext_t * pMqttContext, /*-----------------------------------------------------------*/ +extern UBaseType_t uxRand( void ); + +/*-----------------------------------------------------------*/ + static int32_t prvGenerateRandomNumber() { return( uxRand() & INT32_MAX );