Closed argo9 closed 2 years ago
HI @argo9
Thanks for your PR.
Could you provide some MRE to demonstrate the problem this PR will fix.
I'm sorry I currently can't spend some time to study the effect of this PR.
Regards,
Hi @argo9
I just have some time to look at your PR, which is very good feature to have. I'll merge, then publish a new release, along with some new examples to use the new enhancement for auto-switching between WiFi and Ethernet UDP to update NTP time.
Thanks for your good idea and looking forward to receiving more PRs from you.
Regards,
Hi @argo9
The new NTPClient_Generic releases v3.7.2 has just been published. Your contribution is noted in Contributions and Thanks
Please check the new examples as well as the debug terminal output when running example ESP_WiFi_ETH_NTPClient_Advanced
Best Regards,
WiFi
and Ethernet
UDP instances. Check added setUDP function #8WiFi
and Ethernet
UDP to update NTP time.Packages_Patches
Added a function that allows setting the UDP socket after the declaration of the NTPClient element. This allows you to use Ethernet and WiFi within the same code and switch between them at run time.