UDP Message packet truncation

There are two issues that need for UDP implementation consideration.

Packet Truncation. The TP-Link devices return messages are divided into two packets if the message exceeds 1024 characters. Hubitat appears to ignore all but the first packet and the return data is incomplete can not be readily processed (no longer JSON).

UDP listen function. This is a nice to have. If there were a UDP listen command that would allow the interface to be open for 10 seconds with all replies processed, it would allow a ready UDP discovery of the TP-Link devices without polling each address individually. (The current implementation minimizes this polling. It polls only when activated by the user or (once) when a device has a comms error.)

Thanks in advance for your consideration of these.

Dave

3 Likes