Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 11 months ago.
real time and date
Hi,
I am using Wiznet wizwiki w7500 IoT board and I want to get the current time and Date to display on the console. but I checked https://os.mbed.com/users/donatien/code/NTPClientExample/ above link but the library is made for LPC devices there is no library related to w7500 device can anyone suggest example program.
1 Answer
5 years, 11 months ago.
Hi Albin,
We suggest using a newer NTP example that should work for you. Please try the one here:
We don't have a Wiznet target for testing but you'll want to build the example with the "-m wizwiki_w7500" option.
We just tested this with another platform and the expected output is shown here:
NTP Client example (using Ethernet) Client IP Address is 10.118.18.47 Current time is Thu May 24 15:49:31 2018 Waiting 10 seconds before trying again... Current time is Thu May 24 15:49:41 2018 Waiting 10 seconds before trying again... Current time is Thu May 24 15:49:51 2018 ...
-Ralph, Team Mbed