do something useful for status
This commit is contained in:
parent
942415760d
commit
a508ed0ceb
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -95,7 +95,8 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func statusHandler(w http.ResponseWriter, r *http.Request) {
|
func statusHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Error(w, "not implemented", http.StatusNotFound)
|
//http.Error(w, "not implemented", http.StatusNotFound)
|
||||||
|
fmt.Fprintf(w, "current time: %v\n", time.Now())
|
||||||
}
|
}
|
||||||
|
|
||||||
func readRegs(client modbus.Client, start, qty uint16) {
|
func readRegs(client modbus.Client, start, qty uint16) {
|
||||||
|
|
Loading…
Reference in a new issue