do something useful for status

This commit is contained in:
Josh Deprez 2021-01-19 15:11:26 +11:00
parent 942415760d
commit a508ed0ceb

View file

@ -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) {