M Michael1968 Active Member Licensed User Longtime User Nov 30, 2020 #1 Hi, what is the best way to show log "messages" from library i need it for debug library function code and want to show the message in the IDE log adding "serial1.printf("test") in the *.cpp file give me an error ( error: 'serial1' was not declared in this scope) best regards Michael Last edited: Nov 30, 2020
Hi, what is the best way to show log "messages" from library i need it for debug library function code and want to show the message in the IDE log adding "serial1.printf("test") in the *.cpp file give me an error ( error: 'serial1' was not declared in this scope) best regards Michael
thetahsk Active Member Licensed User Longtime User Nov 30, 2020 #2 Michael1968 said: Hi, what is the best way to show log "messages" from library i need it for debug library function code and want to show the message in the IDE log adding "serial1.printf("test") in the *.cpp file give me an error ( error: 'serial1' was not declared in this scope) best regards Michael Click to expand... Try serial.print("Test this"); Upvote 0
Michael1968 said: Hi, what is the best way to show log "messages" from library i need it for debug library function code and want to show the message in the IDE log adding "serial1.printf("test") in the *.cpp file give me an error ( error: 'serial1' was not declared in this scope) best regards Michael Click to expand... Try serial.print("Test this");
M Michael1968 Active Member Licensed User Longtime User Nov 30, 2020 #3 same error my fault.... i forget to add #include <Arduino.h> Click to expand... now it works Upvote 0