calimero-project / calimero-core

Core library for KNX network access and management
Other
128 stars 65 forks source link

datapoint type #69

Closed ViorelOnica closed 6 years ago

ViorelOnica commented 6 years ago

Hello, Is there any method that retrieves the data type assigned to a group address ?

calimero-project commented 6 years ago

Datapoint types in KNX are configured, therefore, implicitly known. Either, you use an implementation of DatapointModel together with subclasses of Datapoint (e.g., by importing an existing ETS project configuration file). Or, use a best-guess approach (or heuristic) with TranslatorTypes::ofBitSize which provides you with the known datapoint main types for a given type size (e.g., with an ASDU of 4 bytes, one would query all 32-bit main types).

ViorelOnica commented 6 years ago

Thank you !