I am trying to get the metric data from the mesh network. With the help of those metric data, I'm trying to create my own planned path for transmitting the data packet using a package. But in order to plan the path, I need to access the metric from my c program in real time.
I'm able to view the data by using the command " iw dev wlan0 station dump " but I want to access them through my c program.
Is it possible to access the data? if so how?
thanks in advance.
Grab the output of the command and extract what you need from the text. It is typically done in a higher-level language, such as Python, or with a shell script and utilities like grep, sed, awk, and the like. Writing that kind of text processing in C is not simple.