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

ESP8266 SDK 3.X Compile failed - Fixed #21

Closed
vslinuxdotnet opened this issue Jul 13, 2021 · 1 comment
Closed

ESP8266 SDK 3.X Compile failed - Fixed #21

vslinuxdotnet opened this issue Jul 13, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@vslinuxdotnet
Copy link

Hello,
I fixed some problems with your lib in the new ESP8266 SDK, the 3.X.

In file: ESPNtpClient.h
char* getTimeStr (timeval moment) { tm* local_tm = localtime (&moment.tv_usec);
to
char* getTimeStr (timeval moment) { tm* local_tm = localtime ((time_t*) &moment.tv_usec);

In file: ESPNtpClient.cpp
char* dumpNTPPacket (byte* data, size_t length, char* buffer, int len) {
to
char* dumpNTPPacket (uint8_t* data, size_t length, char* buffer, int len) {

Regards,

VS

@gmag11
Copy link
Owner

gmag11 commented Jul 25, 2021

Fixed on 12f30aa

Thank you!

@gmag11 gmag11 added the bug Something isn't working label Jul 25, 2021
@gmag11 gmag11 closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants