I am currently doing a project using particle photon. However, I may need to customize the original particle firmware code to fit in my project.
For developing application code, I am able to use simple Serial.printf(); / Serial.println(); to monitor the program states.
Similarity, I am wondering whether there is any methods for Serial.printing message in libray/system code, which can bring huge convenience for us!!
For example, when I debugging spark_protocol.cpp file, is there any method for me to print the states of variables on console??
For now I found a existing library called service_debug.h, which provides 4 possible 'printing' function, called DEBUG, WARN, ERROR, PANIC, INFO, which seems can be used to printing out message. However, I never did it success, it looks like I need to enable some macros..but just don't know how to do that.
Any suggestions are welcome!