esp8266-weather-station-color icon indicating copy to clipboard operation
esp8266-weather-station-color copied to clipboard

error message

Open afedorov28 opened this issue 11 months ago • 1 comments

I've got the next error message invalid conversion from 'const char*' to 'long int' [-fpermissive]

in the next line

configTime(TIMEZONE.c_str(), NTP_SERVERS);

How can I solve it?

afedorov28 avatar Jan 12 '25 09:01 afedorov28

ESP8266 Arduino.h defines configTime() for both POSIX TZ strings (preferred) as well as timezone int and offset seconds (old API).

See https://github.com/esp8266/Arduino/blob/master/cores/esp8266/Arduino.h#L273-L301

marcelstoer avatar Jan 12 '25 10:01 marcelstoer