UDP Socket application to read current time from network.

This is an UDP example to read current UTC time by sending request to NIST Internet Time Service.

Committer:
deepikabhavnani
Date:
Wed Oct 18 21:59:15 2017 +0000
Revision:
0:b90f9dc5cf9c
UDP Socket Sample

Who changed what in which revision?

UserRevisionLine numberNew contents of line
deepikabhavnani 0:b90f9dc5cf9c 1 ### Getting started with the UDPSocket API ###
deepikabhavnani 0:b90f9dc5cf9c 2
deepikabhavnani 0:b90f9dc5cf9c 3 UDP Example
deepikabhavnani 0:b90f9dc5cf9c 4 This application reads the current UTC time by sending UDP packet to time.nist.gov address at port 37.
deepikabhavnani 0:b90f9dc5cf9c 5
deepikabhavnani 0:b90f9dc5cf9c 6 **Note:** The current example is limited to the ethernet interface on supported devices.
deepikabhavnani 0:b90f9dc5cf9c 7 To use the example with a different interface, you will need to modify main.cpp and
deepikabhavnani 0:b90f9dc5cf9c 8 replace the EthernetInterface class with the appropriate interface.