drmem-drv-ntp

This driver monitors the state of an NTP server and updates devices with the latest information. It only reports information when the NTP server has "sync-ed" with another time server.

The NTP server needs to be configured to use UDP communications. Servers using broadcasts or multicasts to stay in sync will not generate any updates from this driver.

Configuration

The driver needs to know the address of the NTP server. The NTP server should be configured to accept query requests on the interface this driver will access.

Devices

The driver creates these devices:

| Base Name | Type | Units | Comment | |-----------|------------|-------|--------------------------------------------------------------| | state | bool, RO | | Set to true when the system is sync-ed with a time server. | | source | string, RO | | Set to the address of the sync-ed server. | | offset | f64, RO | ms | The offset of the current system-s time with the server's. | | delay | f64, RO | ms | The estimated in-flight delay between the systems. |

History

Added in v0.1.0.