vapourismo / knx-go

KNX clients and protocol implementation in Go
MIT License
88 stars 58 forks source link

feat: unify structure and add types 5.005, 6.010 and 20.102 #58

Closed dmnkdmnt closed 2 years ago

dmnkdmnt commented 2 years ago

Moved remaining type implementations and tests from types.go to separate files.

Added types:

Fixed issue in validation test of DPT 10.001.

mobilarte commented 2 years ago

The implementation of DPT 19.001 is slightly more complicated as the permissible hour range is [0...24] and not [0...23] and some combinations are ruled out (see KNX Datapoint Types).

dmnkdmnt commented 2 years ago

I completely forgot about that o.O Added that code for private use quite some time ago and this morning I asked myself why I never pushed it to GitHub and created a pull request.. I guess that's why, good catch! :) I removed DPT 19.001 from the PR for now. Maybe I find some time in the future to complete the implementation.