SerialLogHandler logger(LOG_LEVEL_ALL);
i need to add this in only once in setup or everytime while printing? can u send any example code for this and steps for USB debugging using particle CLI
SerialLogHandler logger(LOG_LEVEL_ALL);
i need to add this in only once in setup or everytime while printing? can u send any example code for this and steps for USB debugging using particle CLI
That is where your global variables and objects are declared.
If you'd make it a habit to read the manual you might have found out yourself
https://docs.particle.io/reference/device-os/firmware/photon/#logging
yeah man got it thanks.
serial is working, but i still struct with that storing the string data in the eeprom. not working
What does the log tell you???
I’s not there to marvel about the wonders of serial output but it actually conveys information that can and should be used to understand what’s going on.
However, as I just found out in one of the previous device OS updates something must have changed which renders the “standard” logging ineffective in the page handler.
Hence you probably need to replace all Log.xxxx(...) calls with Serial.printlnf(...) to get some useful output.
Hence you probably need to replace all Log.xxxx(...) calls with Serial.printlnf(...) to get some useful output.
actually im using putty to see the serial data in my windows machine. now im trying with this in particle CLI also that also working fine. now i can able to debug. im in progress.
thanks for ur guidance. thanks a lot
merry christmas
@ScruffR, i got this working thanks for ur guidance