Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Barnabybear
#55020 Cool thanks.

I'm loving this!
with:
Code: Select all  // Print the sketch file name and the compile date & time
  Serial.print("Current file is: ");  // just text
  Serial.println(__FILE__);   // name of file currently running on ESP
  Serial.print("Complied on: ");  // just text
  Serial.print(__DATE__);  // date the file currently running was compiled
  Serial.print(" at ");  // just text
  Serial.println(__TIME__);  // time the file currently running was compiled

you get something like:
Code: Select allCurrent file is: C:\Users\<Name>\Documents\Arduino\Blind_WiFiWebServer_OTA\Blind_WiFiWebServer_OTA.ino
Complied on: Sep 13 2016 at 15:09:07

just as a nice little check that everything has gone ok.