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

Allow to use temporary strings in configTime #8606

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jun 16, 2022

resolves #7056

in addition to the existing function, adds an overload accepting String
adds warning in the comment. not sure about older versions, but in ide 2.0 this will be displayed when hovering over the function call

although... there may be a confusion between F() and PSTR(). F() will be loaded into a static string, while PSTR() is const char ptr and uses the original function. at least with DNS, there's is a strlen call which will obviously fail

@d-a-v d-a-v merged commit 8decdc3 into esp8266:master Jun 24, 2022
@mcspr mcspr deleted the sntp/private-strings branch January 7, 2023 00:18
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

Successfully merging this pull request may close these issues.

SNTP: configTime server cannot reference temporary char pointer
2 participants