Skip to content

Commit

Permalink
add CONFIG_COAP_DEMO_ENABLED to demoConfig.h, config the server addre…
Browse files Browse the repository at this point in the history
…ss in FreeRTOSConfig.h and update the DemoEntryFunction Call (aws#2390)
  • Loading branch information
jamali005 committed Nov 10, 2020
1 parent 44b1a9e commit bfd4c0b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions demos/demo_runner/iot_demo_freertos.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ void runDemoTask( void * pArgument )
pConnectionParams = AwsIotNetworkManager_GetConnectionParams( demoConnectedNetwork );
pCredentials = AwsIotNetworkManager_GetCredentials( demoConnectedNetwork );

/* Run the demo. */
status = pContext->demoFunction( true,
clientcredentialIOT_THING_NAME,
/* Run the CoAP demo. */
status = pContext->demoFunction( false,
NULL,
pConnectionParams,
pCredentials,
pNetworkInterface );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ extern int iMainRand32( void );
#define configECHO_SERVER_ADDR3 6
#define configTCP_ECHO_CLIENT_PORT 7

/* The address of a CoAP server that will be used by the demo CoAP client.*/
#define configCOAP_SERVER_ADDR0 192
#define configCOAP_SERVER_ADDR1 168
#define configCOAP_SERVER_ADDR2 0
#define configCOAP_SERVER_ADDR3 101
#define configCOAP_PORT 5683
#define configCOAP_URI_PATH "suite"
#define configCOAP_URI_QUERY "t=1nce_test"

/* The platform FreeRTOS is running on. */
#define configPLATFORM_NAME "STM32L475"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@
* CONFIG_HTTPS_SYNC_UPLOAD_DEMO_ENABLED
* CONFIG_HTTPS_ASYNC_UPLOAD_DEMO_ENABLED
* CONFIG_CLI_UART_DEMO_ENABLED
* CONFIG_COAP_DEMO_ENABLED
*
* These defines are used in iot_demo_runner.h for demo selection */

#define CONFIG_MQTT_DEMO_ENABLED
#define CONFIG_COAP_DEMO_ENABLED

/* Default configuration for all demos. Individual demos can override these below */
#define democonfigDEMO_STACKSIZE ( configMINIMAL_STACK_SIZE * 8 )
Expand Down

0 comments on commit bfd4c0b

Please sign in to comment.