Hello,
In one of my projects I'm using DS3231 clock module and I want to make time() function to return time from this module. The problem is that in new SDK time() function already defined in libmain - that causing linker error. So, please make it weak to allow user to provide it's own implementation.
Futhermore, it would be good if you provide a callback for user when SNTP receive time. Currently to check is SNTP time was updated I need to constantly poll sntp_get_current_timestamp() until it return correct time.
SDK 2.0 - make time() function WEAK + SNTP tweaks
Re: SDK 2.0 - make time() function WEAK + SNTP tweaks
Postby pratik » Wed Dec 07, 2016 10:45 pm
Hello,
I will forward this suggestion to the SDK developers. Making internal functions weak causes issues with debugging because libraries are not provided with complete source code. Also, interdependent components inside the SDK get messed up a lot. But will definitely get this through to the developers. Thanks for the feedback!
I will forward this suggestion to the SDK developers. Making internal functions weak causes issues with debugging because libraries are not provided with complete source code. Also, interdependent components inside the SDK get messed up a lot. But will definitely get this through to the developers. Thanks for the feedback!
Who is online
Users browsing this forum: No registered users and 284 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.