Chat freely about anything...

User avatar
By Barnabybear
#36383 Hi, having various ESP's kicking around on the desk in various stages of development, I find it impossible to workout which is flashed with what.
I've decided to start using a header that is printed out over the serial monitor at power up so I can tell them apart.
Code: Select allSerial.begin(115200);
Serial.print(“Electric gate opener V2.0”);
Serial.end();

Should I use any particular format or include any other information to be more in line with any existing reports?
User avatar
By gerardwr
#36458 I use this, not as fancy as yours, but it can be placed unchanged in any sketch. It prints the filename and time of compile.
Code: Select all  Serial.print(__FILE__); Serial.print(" "); Serial.print(__DATE__); Serial.print(" "); Serial.print(__TIME__);
Output in serial is like:
Code: Select alleven.ino Dec 15 2015 09:36:40