calimero-project / calimero-core

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

1 byte datapoint read #66

Closed ViorelOnica closed 6 years ago

ViorelOnica commented 6 years ago

Hello,

I asked some questions concerning datapoints reading in some previous issues, but I still encounter some problems.. ;\

The exception I get when I call readControl is "APDU response length 3 bytes, expected 2 to 2". And it's weird.. because in the knx control panel (the one where I can create and access objects), my object appears to be "1 byte unsigned integer".

gfadfa

bmalinowsky commented 6 years ago

A 1 byte unsigned integer is not a control DPT, but an 8-bit (i.e. 1 byte) unsigned DPT. You read it with readUnsigned and probably SCALING to get values between 0 - 100.

ViorelOnica commented 6 years ago

succeded, thank you very much !

bmalinowsky commented 6 years ago

use UNSCALED