From 56e496c728faede7a6b26a382e87081dec569f78 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 1 Dec 2017 01:07:03 +1300 Subject: Fix eelink udp length field --- src/org/traccar/protocol/EelinkProtocolEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/EelinkProtocolEncoder.java b/src/org/traccar/protocol/EelinkProtocolEncoder.java index 41d76b24a..76865a039 100644 --- a/src/org/traccar/protocol/EelinkProtocolEncoder.java +++ b/src/org/traccar/protocol/EelinkProtocolEncoder.java @@ -65,7 +65,7 @@ public class EelinkProtocolEncoder extends BaseProtocolEncoder { if (connectionless) { result.writeByte('E'); result.writeByte('L'); - result.writeShort(2 + 2 + 2 + buf.readableBytes()); // length + result.writeShort(2 + buf.readableBytes()); // length result.writeShort(checksum(buf.toByteBuffer())); } -- cgit v1.2.3