Commit graph

5 commits

Author SHA1 Message Date
Jan Dittberner 2e467b3d2e Configure golangci-lint and fix warnings 2021-01-09 11:24:40 +01:00
Jan Dittberner 0bb19ba8bd Introduce configurable buffer size 2020-04-20 22:01:06 +02:00
Jan Dittberner 1dcac05cee Tidy dependencies 2020-04-17 23:01:00 +02:00
Jan Dittberner 80b3309c7c Use better maintained go.bug.st/serial
This commit switches to serial port library to the better maintained
go.bug.st/serial library.
2020-04-17 19:39:06 +02:00
Jan Dittberner 42d1e6e991 Refactor client into separate files
Add a main loop, move I/O code into io.go, move configuration into config.go.
Use shared.Decode24BitLength instead of manually decoding block lengths.
Fix response block decoding and checksum validation.
Add constants for commonly used byte values and use these in the signer and
the client.
2020-04-17 19:39:01 +02:00