Compare commits
3 Commits
1287efa8a3
...
6a8af667c3
Author | SHA1 | Date | |
---|---|---|---|
|
6a8af667c3 | ||
|
e38fb4d85f | ||
|
6ae59ae7d9 |
@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.19-alpine3.15 as go-builder
|
FROM golang:1.20-alpine3.15 as go-builder
|
||||||
ENV GOPATH ""
|
ENV GOPATH ""
|
||||||
|
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
|
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
A side project to collect, transport and store data from a Goodwe solar inverter.
|
A side project to collect, transport and store data from a Goodwe solar inverter.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
```
|
||||||
|
GOOS=linux GOARCH=arm go build -o solar-toolkit-daemon ./cmd/daemon
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Licensed under the MIT license. See the LICENSE file.
|
Licensed under the MIT license. See the LICENSE file.
|
||||||
|
@ -19,9 +19,9 @@ type Conn interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
maxAttempts = 3
|
maxAttempts = 4
|
||||||
timeout = time.Second * 5
|
timeout = time.Second * 10
|
||||||
readBufferSizeBytes = 4_096
|
readBufferSizeBytes = 8_192
|
||||||
)
|
)
|
||||||
|
|
||||||
// Send writes the command to the provided Writer, and reads and validates the
|
// Send writes the command to the provided Writer, and reads and validates the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user