diff --git a/services/mill/wifi.go b/services/mill/wifi.go index a447260..fc4a93f 100644 --- a/services/mill/wifi.go +++ b/services/mill/wifi.go @@ -100,7 +100,7 @@ func (w *WifiBridge) refresh() error { return err } } - + return nil } @@ -112,7 +112,7 @@ func (w *WifiBridge) getTemperature() (float64, error) { req, err := http.NewRequest( "GET", - "http://%s/set-temperature", + fmt.Sprintf("http://%s/set-temperature", w.IP), bytes.NewReader(body), ) if err != nil { @@ -144,7 +144,7 @@ func (w *WifiBridge) writeTemperature() error { req, err := http.NewRequest( "POST", - "http://%s/set-temperature", + fmt.Sprintf("http://%s/set-temperature", w.IP), bytes.NewReader(body), ) if err != nil {