setrtc

package module
v0.0.0-...-7d45161 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 7 Imported by: 0

README

go-setrtc

Set device RTC unix_time though the deviceparameters protocol.

Documentation

Index

Constants

View Source
const STARTUP_DELAY = 3 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type RealTimeClockSetter

type RealTimeClockSetter struct {
	loggers.DIWEloggers

	Exit chan bool
	// contains filtered or unexported fields
}

func NewRealTimeClockSetter

func NewRealTimeClockSetter(conn moteconnection.MoteConnection, host string) *RealTimeClockSetter

func (*RealTimeClockSetter) AnnounceTime

func (self *RealTimeClockSetter) AnnounceTime(offset int64) error

func (*RealTimeClockSetter) Run

func (self *RealTimeClockSetter) Run(period time.Duration, offset int64)

Directories

Path Synopsis
cmd
setrtc
setrtc executable
setrtc executable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL