File tree 3 files changed +14
-4
lines changed
vendors/st/boards/stm32l475_discovery/aws_demos/config_files
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -313,9 +313,9 @@ void runDemoTask( void * pArgument )
313
313
pConnectionParams = AwsIotNetworkManager_GetConnectionParams ( demoConnectedNetwork );
314
314
pCredentials = AwsIotNetworkManager_GetCredentials ( demoConnectedNetwork );
315
315
316
- /* Run the demo. */
317
- status = pContext -> demoFunction ( true ,
318
- clientcredentialIOT_THING_NAME ,
316
+ /* Run the CoAP demo. */
317
+ status = pContext -> demoFunction ( false ,
318
+ NULL ,
319
319
pConnectionParams ,
320
320
pCredentials ,
321
321
pNetworkInterface );
Original file line number Diff line number Diff line change @@ -202,6 +202,15 @@ extern int iMainRand32( void );
202
202
#define configECHO_SERVER_ADDR3 6
203
203
#define configTCP_ECHO_CLIENT_PORT 7
204
204
205
+ /* The address of a CoAP server that will be used by the demo CoAP client.*/
206
+ #define configCOAP_SERVER_ADDR0 192
207
+ #define configCOAP_SERVER_ADDR1 168
208
+ #define configCOAP_SERVER_ADDR2 0
209
+ #define configCOAP_SERVER_ADDR3 101
210
+ #define configCOAP_PORT 5683
211
+ #define configCOAP_URI_PATH "suite"
212
+ #define configCOAP_URI_QUERY "t=1nce_test"
213
+
205
214
/* The platform FreeRTOS is running on. */
206
215
#define configPLATFORM_NAME "STM32L475"
207
216
Original file line number Diff line number Diff line change 48
48
* CONFIG_HTTPS_SYNC_UPLOAD_DEMO_ENABLED
49
49
* CONFIG_HTTPS_ASYNC_UPLOAD_DEMO_ENABLED
50
50
* CONFIG_CLI_UART_DEMO_ENABLED
51
+ * CONFIG_COAP_DEMO_ENABLED
51
52
*
52
53
* These defines are used in iot_demo_runner.h for demo selection */
53
54
54
- #define CONFIG_MQTT_DEMO_ENABLED
55
+ #define CONFIG_COAP_DEMO_ENABLED
55
56
56
57
/* Default configuration for all demos. Individual demos can override these below */
57
58
#define democonfigDEMO_STACKSIZE ( configMINIMAL_STACK_SIZE * 8 )
You can’t perform that action at this time.
0 commit comments