Where is “vGetMetrics” in metrics_collector?
I am checking Device_Defender_Demo in FreeRTOS GitHub, but can not find out where vGetMetrics is defined.
Where is “vGetMetrics” in metrics_collector?
I am checking Device_Defender_Demo in FreeRTOS GitHub, but can not find out where vGetMetrics is defined.
@newbie vGetMetrics is defined inside the FreeRTOS+TCP library as part of its tools/tcp_utilities module.
You can find the source here, this file should be present in your local copy of your repository when you git clone it with submodules cloned as well. [docs]
Thanks! I created it by myself and it has same output with your suggestion files.
Just replaced these, and I see that need to define input, output bytes and packets.
Current files has defined iptraceNETWORK_INTERFACE_INPUT, and iptraceNETWORK_INTERFACE_INPUT.
I used it as is. The output is 0 for byte and packet. My porting is not good enough? How can I manage iptraceNETWORK_INTERFACE_INPUT and iptraceNETWORK_INTERFACE_OUTPUT to show ?
Fix me if im wrong!
Where do you see these defines?
This question is not clear. The defender demo builds a JSON report and publishes it to a MQTT topic - FreeRTOS/FreeRTOS-Plus/Demo/AWS/Device_Defender_Windows_Simulator/Device_Defender_Demo/DemoTasks/DefenderDemoExample.c at main · FreeRTOS/FreeRTOS · GitHub. What do you want to achieve by defining iptraceNETWORK_INTERFACE_INPUT and iptraceNETWORK_INTERFACE_OUTPUT?