mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-07-27 08:13:55 +00:00
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
This commit is contained in:
2
.github/workflows/freertos_plus_demos.yml
vendored
2
.github/workflows/freertos_plus_demos.yml
vendored
@@ -956,7 +956,7 @@ jobs:
|
|||||||
- env:
|
- env:
|
||||||
stepName: Build AWS IoT Fleet Provisioning Demo
|
stepName: Build AWS IoT Fleet Provisioning Demo
|
||||||
name: ${{ env.stepName }}
|
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: |
|
run: |
|
||||||
# ${{ env.stepName }}
|
# ${{ env.stepName }}
|
||||||
echo "::group::${{ env.stepName }}"
|
echo "::group::${{ env.stepName }}"
|
||||||
|
|||||||
@@ -291,6 +291,10 @@ static bool prvUnsubscribeFromRegisterThingResponseTopics( void );
|
|||||||
static int prvFleetProvisioningTask( void * pvParameters );
|
static int prvFleetProvisioningTask( void * pvParameters );
|
||||||
|
|
||||||
|
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
BaseType_t xPlatformIsNetworkUp( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
static void prvProvisioningPublishCallback( MQTTContext_t * pxMqttContext,
|
static void prvProvisioningPublishCallback( MQTTContext_t * pxMqttContext,
|
||||||
@@ -54,6 +54,7 @@
|
|||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
extern void vStartFleetProvisioningDemo( void );
|
extern void vStartFleetProvisioningDemo( void );
|
||||||
|
extern void vPlatformInitIpStack( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
@@ -214,7 +214,6 @@ bool xGenerateKeyAndCsr( CK_SESSION_HANDLE xP11Session,
|
|||||||
CK_OBJECT_HANDLE xPubKeyHandle;
|
CK_OBJECT_HANDLE xPubKeyHandle;
|
||||||
CK_RV xPkcs11Ret = CKR_OK;
|
CK_RV xPkcs11Ret = CKR_OK;
|
||||||
mbedtls_pk_context xPrivKey;
|
mbedtls_pk_context xPrivKey;
|
||||||
mbedtls_ecdsa_context xEcdsaContext;
|
|
||||||
mbedtls_x509write_csr xReq;
|
mbedtls_x509write_csr xReq;
|
||||||
int32_t ulMbedtlsRet = -1;
|
int32_t ulMbedtlsRet = -1;
|
||||||
const mbedtls_pk_info_t * pxHeader = mbedtls_pk_info_from_type( MBEDTLS_PK_ECKEY );
|
const mbedtls_pk_info_t * pxHeader = mbedtls_pk_info_from_type( MBEDTLS_PK_ECKEY );
|
||||||
@@ -359,6 +359,10 @@ static MQTTStatus_t prvProcessLoopWithTimeout( MQTTContext_t * pMqttContext,
|
|||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
extern UBaseType_t uxRand( void );
|
||||||
|
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
static int32_t prvGenerateRandomNumber()
|
static int32_t prvGenerateRandomNumber()
|
||||||
{
|
{
|
||||||
return( uxRand() & INT32_MAX );
|
return( uxRand() & INT32_MAX );
|
||||||
|
|||||||
Reference in New Issue
Block a user