Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By RIN67630
#94419 Hi
I have recentely reinstalled my Arduino IDE 1.8.16 (Mac)
It fetched ESP8266 Boards Version3.0.2
My sketch compiled error-free, but crashed on a Wemos D1 mini.

I narrowed down the error to:

getEpoch(); // writes the Epoch (Numbers of seconds till 1.1.1970...
getTimeData(); // breaks down the Epoch into discrete values.
sprintf(charbuff, "Now is %02d:%02d:%02d. The Epoch is: %10lu\r\nDate is %s, %02d %s %04d", Hour, Minute, Second, Epoch, DayName, Day, MonthName, Year);
Console3.println(charbuff);

Without printing the Epoch with %10lu it worked.
I can far remember having read something with lu beeing non-standard ?

Is it a bug or not?
if not, what is the replacement for lu?

Thank you.
User avatar
By Inq720
#94421 %10u - handles u8, u16, u32.
Is Epoch one of those?