You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/DemoTasks/DefenderDemoExample.c
+61-13Lines changed: 61 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -35,18 +35,20 @@
35
35
* with another MQTT library. This demo requires using the AWS IoT broker as
36
36
* Device Defender is an AWS service.
37
37
*
38
-
* This demo connects to the AWS IoT broker and subscribes to the device
39
-
* defender topics. It then collects metrics for the open ports and sockets on
40
-
* the device using FreeRTOS+TCP, and generates a device defender report. The
38
+
* This demo subscribes to the device defender topics. It then collects metrics
39
+
* for the open ports and sockets on the device using FreeRTOS+TCP. Additonally
40
+
* the stack high water mark and task IDs are collected for custom metrics.
41
+
* These metrics are used to generate a device defender report. The
41
42
* report is then published, and the demo waits for a response from the device
42
-
* defender service. Upon receiving the response or timing out, the demo
43
-
* finishes.
43
+
* defender service. Upon receiving an accepted response, the demo finishes.
44
+
* If the demo receives a rejected response or times out, the demo repeats up to
45
+
* a maximum of DEFENDER_MAX_DEMO_LOOP_COUNT times.
44
46
*
45
47
* This demo sets the report ID to xTaskGetTickCount(), which may collide if
46
48
* the device is reset. Reports for a Thing with a previously used report ID
47
49
* will be assumed to be duplicates and discarded by the Device Defender
48
50
* service. The report ID needs to be unique per report sent with a given
49
-
* Thing. We recommend using an increasing unique id such as the current
51
+
* Thing. We recommend using an increasing unique ID such as the current
50
52
* timestamp.
51
53
*/
52
54
@@ -97,7 +99,7 @@
97
99
#defineDEFENDER_RESPONSE_WAIT_SECONDS ( 2 )
98
100
99
101
/**
100
-
* @brief Name of the report id field in the response from the AWS IoT Device
102
+
* @brief Name of the report ID field in the response from the AWS IoT Device
Copy file name to clipboardExpand all lines: FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/FreeRTOSConfig.h
+2-10Lines changed: 2 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@
48
48
#defineconfigMINIMAL_STACK_SIZE ( ( unsigned short ) 60 ) /* In this simulated case, the stack only has to hold one small structure as the real stack is part of the Win32 thread. */
0 commit comments