aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-31 20:24:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-05-31 20:24:12 +1200
commit4519b449ed5eb64fb26ef891944147d0eaaf418b (patch)
tree0e4eb2cdb60f86d3f749165f84c779aa8d3cd671 /src/org
parent5cb8c174e6251ee7c21ca861bcf5e3def078b786 (diff)
downloadtrackermap-server-4519b449ed5eb64fb26ef891944147d0eaaf418b.tar.gz
trackermap-server-4519b449ed5eb64fb26ef891944147d0eaaf418b.tar.bz2
trackermap-server-4519b449ed5eb64fb26ef891944147d0eaaf418b.zip
Add FlexComm acknowledgement
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/FlexCommProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
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;
}