Closed mrWheel closed 6 years ago
I added this function:
void ESPKNXIP::send4Bit(address_t const &receiver, knx_command_type_t ct, uint8_t nible)
{
uint8_t buf[] = {(uint8_t)(nible & 0x0F)};
send(receiver, ct, 1, buf);
}
and now I can send telegrams with the right payload. The KNXD monitor shows:
LPDU: BC 11 C8 10 0E E1 00 87 E2 :L_Data low from 1.1.200 to 2/0/14 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write (small) 07
LPDU: BC 11 C8 10 0E E1 00 88 ED :L_Data low from 1.1.200 to 2/0/14 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write (small) 08
LPDU: BC 11 C8 10 0E E1 00 89 EC :L_Data low from 1.1.200 to 2/0/14 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write (small) 09
LPDU: BC 11 C8 10 0E E1 00 88 ED :L_Data low from 1.1.200 to 2/0/14 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write (small) 08
Which is what it should be.
If you approve, will you please add this function to this already great library?
Hi,
I probably forgot to add this, I will when I get home in a few hours.
Can you send me a link to the documentation you are using? I have the official spec at home but I doesn't look like what you showed.
Cheers, Nico
Done. I also added a version for 2 bits, as the spec also specifies this.
Hi Nico,
This is great! And lighting fast!
Regards,
Willem
Hi Nico,
Is there a way to send a 4bit telegram? For StepUp/Down dimming needs this but I can't see how..
... or am I missing something (again!)??
Pressing the KNX switch to dimUp/Down the lamp the monitor shows:
Writing 07, 08 or 09 values using writeBit() I get this:
Using write1ByteInt() the monitor shows: