I found this post and implemented the code in a separate classed and then passed different variables to it in an attempt to get the type name printed to serial.
The code compiled and worked fine but i get the following strange output:
For type int I get Fn on the serial monitor For String I get ;y on the serial monitor
If I don't make a type using
MAKE_TYPE_INFO(type) then try
TYPE_NAME() I don't get
unknown printed on the serial monitor. I get
All this weirdness is consistent and I could use it to make decisions based on type but why do that if their is a solution.