I am trying to find a correlate command for "exec" of python for the arduino. I woud like to execute a command from a string.
Something like this
String str = name;
In that hypothetical command line, the value "name" would substitute the "%s" and it would run
Thank you for any answer.
There's nothing like that in C++.
You can have a list of if - else if statements that call the right function based on comparison of the string. But once the code is compiled all of the names of functions and variables is gone and they are all replaced with memory locations. At run time the concept of the "name" of a function is completely meaningless.
Thank you. I got your answer. I will change the strategy here.