Network Time Protocol

From Visuino
Jump to navigation Jump to search

File:TArduinoNetworkTimeProtocol.png

Summary

Retrieves the current date and time from the Internet using the Network Time Protocol (NTP).

Description

The Network Time Protocol component synchronizes the system’s date/time with global NTP servers over the internet. It requests precise time data via NTP and outputs it as a Date/Time value.

You can configure a Base Date, apply a Daylight Offset, and adjust for a Time Zone Offset. Optionally, the component can also set a custom UDP port for communication.

Diagram:

Categories

Properties

  • Enabled – Enables or disables the component.
  • Base Date – The reference base date/time used internally for calculations.
  • Daylight Offset – Adjusts for daylight saving time:
    • Enabled – Boolean to enable/disable daylight saving correction.
    • Offset (H) – Hours to adjust when enabled (default: -1).
  • Set Port – Boolean; when True, allows configuration of a custom UDP port for NTP communication.
  • Time Zone Offset (H) – Time zone adjustment in hours relative to UTC.

Pins

  • Clock – Input clock signal for triggering updates.
  • Out – Date/Time output synchronized with network time.
  • Socket – Socket output for the underlying network communication.