Ntp time issue


I’m using lolin nodemcu v3 esp and i have a issue with time sync from ntp. The code received time from the server only once when i turn the circuit on after that it won’t receive the current time. The code is a example from internet and modified. I added a counter to cout the sync to check it. Code in attachment.

NTP.txt (9.03 KB)

Read "How To Use This Forum"

in particular, 7. If you are posting code or error messages, use "code" tags

This is what happens when you do not

if you have a module that is not working, do not say "A GPS" or "the fingerprint sensor". Show us a link to the particular sensor, and a link to the datasheet if available