mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Update esp-knx-ip library to latest
This commit is contained in:
parent
c4dbde6306
commit
16463ef2d7
@ -188,12 +188,14 @@ void ESPKNXIP::send_4byte_float(address_t const &receiver, knx_command_type_t ct
|
||||
|
||||
void ESPKNXIP::send_14byte_string(address_t const &receiver, knx_command_type_t ct, const char *val)
|
||||
{
|
||||
uint8_t buf[14];
|
||||
// DPT16 strings are always 14 bytes long, however the data array is one larger due to the telegram structure.
|
||||
// The first byte needs to be zero, string start after that.
|
||||
uint8_t buf[15] = {0x00};
|
||||
int len = strlen(val);
|
||||
if (len > 14)
|
||||
{
|
||||
len = 14;
|
||||
}
|
||||
memcpy(buf, val, len);
|
||||
send(receiver, ct, 14, buf);
|
||||
memcpy(buf+1, val, len);
|
||||
send(receiver, ct, 15, buf);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user