Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message #174

Open
afedorov28 opened this issue Jan 12, 2025 · 1 comment
Open

error message #174

afedorov28 opened this issue Jan 12, 2025 · 1 comment

Comments

@afedorov28
Copy link

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?

@marcelstoer
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants