Hi all,
Is it possible to retrieve from the arduino the name of the sketch it is currently running and display it to the serial monitor?
charlie
Hi all,
Is it possible to retrieve from the arduino the name of the sketch it is currently running and display it to the serial monitor?
charlie
FILE macro works in c.
Give that a try.
It is likely that the sketch name is not put into the binary file which is actually loaded into the program memory of the arduino. None of the variable names or function names are there, either.
The way to do it, would be to use that FILE macro, if it works, and somehow put the file name into a char array which will get loaded onto the arduino.
The other way would be just to have a string in your program, with the name, which would not have to be exactly the same as the source code file name on your computer, it could be anything you like.