From 5ec4a134fc1f7392fc5a457fc3be19ea8ec20676 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 12 Sep 2018 10:23:31 +1200 Subject: Add Milesmate acknowledgement --- src/org/traccar/protocol/MilesmateProtocolDecoder.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/protocol/MilesmateProtocolDecoder.java b/src/org/traccar/protocol/MilesmateProtocolDecoder.java index 30e21c06b..7240ad9fc 100644 --- a/src/org/traccar/protocol/MilesmateProtocolDecoder.java +++ b/src/org/traccar/protocol/MilesmateProtocolDecoder.java @@ -18,6 +18,7 @@ package org.traccar.protocol; import io.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; import org.traccar.DeviceSession; +import org.traccar.NetworkMessage; import org.traccar.helper.BitUtil; import org.traccar.helper.DateBuilder; import org.traccar.helper.Parser; @@ -62,6 +63,10 @@ public class MilesmateProtocolDecoder extends BaseProtocolDecoder { return null; } + if (channel != null) { + channel.writeAndFlush(new NetworkMessage("+##Received OK\n", remoteAddress)); + } + DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next()); if (deviceSession == null) { return null; -- cgit v1.2.3