From 4519b449ed5eb64fb26ef891944147d0eaaf418b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 31 May 2017 20:24:12 +1200 Subject: Add FlexComm acknowledgement --- src/org/traccar/protocol/FlexCommProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/traccar/protocol/FlexCommProtocolDecoder.java b/src/org/traccar/protocol/FlexCommProtocolDecoder.java index e565bf0de..086a2de0b 100644 --- a/src/org/traccar/protocol/FlexCommProtocolDecoder.java +++ b/src/org/traccar/protocol/FlexCommProtocolDecoder.java @@ -111,6 +111,10 @@ public class FlexCommProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_BATTERY_LEVEL, parser.nextInt()); position.set(Position.KEY_POWER, parser.nextInt() * 0.1); + if (channel != null) { + channel.write("{01}"); + } + return position; } -- cgit v1.2.3