enbility / eebus-go

EEBUS protocol implementation in go
https://enbility.net
MIT License
52 stars 14 forks source link

Redesign SHIP handshake #16

Closed DerAndereAndi closed 1 year ago

DerAndereAndi commented 2 years ago

The ship handshake code is quite cumbersome and error prone, e.g. due to the need for locking. It seems that using a state machine with defined state changes should make the code easier to read, debug and also more failure proof.