diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-07 16:48:41 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-07 16:48:41 +1200 |
commit | 7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc (patch) | |
tree | 0e5cba2fe3cc600478fb5f536e9abf485ef976d7 /src/org/traccar/protocol/FlexCommProtocolDecoder.java | |
parent | a9be10be1cf3709a6f6eb5d612c2f5485f12749e (diff) | |
download | trackermap-server-7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc.tar.gz trackermap-server-7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc.tar.bz2 trackermap-server-7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc.zip |
Migrate H, I, J, K protocols
Diffstat (limited to 'src/org/traccar/protocol/FlexCommProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/FlexCommProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/FlexCommProtocolDecoder.java b/src/org/traccar/protocol/FlexCommProtocolDecoder.java index 18ba34ec9..73c192698 100644 --- a/src/org/traccar/protocol/FlexCommProtocolDecoder.java +++ b/src/org/traccar/protocol/FlexCommProtocolDecoder.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.Parser; import org.traccar.helper.PatternBuilder; import org.traccar.helper.UnitsConverter; @@ -117,7 +118,7 @@ public class FlexCommProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_POWER, parser.nextInt() * 0.1); if (channel != null) { - channel.write("{01}"); + channel.write(new NetworkMessage("{01}", remoteAddress)); } return position; |