openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[tcp] Unescape UDP preAmble and postAmple like for TCP #5849

Closed lewie closed 5 years ago

lewie commented 5 years ago

Transfer the functionality of TCPBinding.java also to UDPBinding.java

Using UDP, postamble=\r was sent as UTF-8 instead as ASCII:

Receved: str\u000d -> HEX: 73 74 72 5C 75 30 30 30 64

Now, it will be sent as ASCII:

Receved: str\r -> HEX: 73 74 72 0D

Signed-off-by: lewie helmut.lehmeyer@gmail.com