ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-07T22:45:33+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2781 2016-12-07T22:45:33+08:00 2016-12-07T22:45:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2781&p=10840#p10840 <![CDATA[Re: SDK 2.0 - make time() function WEAK + SNTP tweaks]]> 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!

Statistics: Posted by Guest — Wed Dec 07, 2016 10:45 pm


]]>
2016-11-21T18:19:57+08:00 2016-11-21T18:19:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2781&p=10601#p10601 <![CDATA[Re: SDK 2.0 - make time() function WEAK + SNTP tweaks]]> Statistics: Posted by DarkSide — Mon Nov 21, 2016 6:19 pm


]]>
2016-10-10T21:49:56+08:00 2016-10-10T21:49:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2781&p=10107#p10107 <![CDATA[Re: SDK 2.0 - make time() function WEAK + SNTP tweaks]]>
Even better, just make all symbols in library weak, like it should, with a library.

Statistics: Posted by eriksl — Mon Oct 10, 2016 9:49 pm


]]>
2016-09-15T19:09:57+08:00 2016-09-15T19:09:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2781&p=9835#p9835 <![CDATA[SDK 2.0 - make time() function WEAK + SNTP tweaks]]> 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.

Statistics: Posted by DarkSide — Thu Sep 15, 2016 7:09 pm


]]>