calimero-project / calimero-core

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

Read 232.600 RGB #74

Closed ViorelOnica closed 5 years ago

ViorelOnica commented 5 years ago

Hello !

Is there any way I can read a 3 byte 232.600 RGB datapoint ? I'm using the code below to write, but I can't figure out how to read..

final DPTXlatorRGB dptxlator=new DPTXlatorRGB(DPT_RGB); dptxlator.setValue(175,206,255); ProcessCommunicator pc=new ProcessCommunicatorImpl(KNX_LINK);; pc.write(new GroupAddress(command_group_address),dptxlator);

calimero-project commented 5 years ago

Use ProcessCommunicator::read(Datapoint dp).

The datapoint you create with new StateDP(myGroupAddress, "my datapoint", 0, DPTXlatorRGB.DPT_RGB.getID()).

There is currently no method which directly returns you the used dpt translator.

ViorelOnica commented 5 years ago

It works, thank you !