How to update RTC from NTP pool using TCP/UDP in M66

Gone thru the example about implementing UDP sucessfully. But unable to find any method for updating the RTC via NTP pool. Please guide with an example.

Dear Kaushikbm,
Sorry for delay answer your question. Please check the following example to update the RTC via NTP. Thanks!


Dear Kyson,
Thank you very much for the solution. I got the sequence. Can this also be used to update from a NTP pool?

Dear Kaushikbm,
Yes,of course, it is just use to update the RTC time via NTP. Thanks!