JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

SK Websocket connection fix + enhancement #58

Closed JohnySeven closed 3 years ago

JohnySeven commented 3 years ago

I've fixed WS connection process to connect right after websocket is connected not after welcome message is received. Tested it with my RPI and it works fine, should be more reliable then before.

Another enhancement requested by @ba58smith was sending watch status in separate SK paths, this PR does it. INew paths are: {watchname}.battery = 53 {watchname}.temperature = 288 {watchname}.uptime = "19:43:45" (data are from my watch on my desk)

Thanks

JohnySeven commented 3 years ago

I've fixed the constant value, thanks for approval and merging! :-)