- 
                Notifications
    You must be signed in to change notification settings 
- Fork 959
add example pico_w/wifi/ntp_system_time #716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| Thanks for the extra comments 👍 | 
| 
 Oooo never considered that... My "lengthy and extensive research" (ha ha) suggests it might be the former: https://retrocomputing.stackexchange.com/questions/25601/what-is-the-meaning-of-asctime | 
| Found a way to avoid hardcoding the timezone names in the printf() :-) | 
| Many thanks for the excellent suggestions - should be all wrapped up in the latest commit (please let me know if I missed anything) | 
| Looking really good now - many thanks again for your time to review | 
A proposed new NTP example that differs from the existing
pico_w/wifi/ntp_clientin the following ways:pico_aon_timerto create a time-of-day clock that can be read asynchronously from user codeThe program connects to Wi-Fi, initialises the lwIP SNTP app, syncs the
pico_aon_timerto NTP and then enters a loop to display the local time in London (or UTC, or whichever timezone the user defines); resynchronising to ntp.pool.org in the background every hour.I suggest it's quite an important use case for the Pico-W, and illustrates a couple of features users may find helpful (such as how to create and use a POSIX timezone).