aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-14 09:40:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-14 09:40:58 +1300
commit544c61bee4297d4467a35fc8abcd5c35f17f4158 (patch)
tree9961bc5e4c70255c51d4c49752c10338be6ea0bc /src/org/traccar/protocol/MeiligaoProtocolEncoder.java
parent59b108d8e06e5ee54087d43ec08bf4744cb58680 (diff)
downloadtrackermap-server-544c61bee4297d4467a35fc8abcd5c35f17f4158.tar.gz
trackermap-server-544c61bee4297d4467a35fc8abcd5c35f17f4158.tar.bz2
trackermap-server-544c61bee4297d4467a35fc8abcd5c35f17f4158.zip
Switch Meiligao engine on and off commands
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolEncoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolEncoder.java b/src/org/traccar/protocol/MeiligaoProtocolEncoder.java
index e8c62e502..4aae12add 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolEncoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolEncoder.java
@@ -71,10 +71,10 @@ public class MeiligaoProtocolEncoder extends BaseProtocolEncoder {
content.writeShort(((Number) attributes.get(Command.KEY_FREQUENCY)).intValue() / 10);
return encodeContent(command.getDeviceId(), MSG_TRACK_BY_INTERVAL, content);
case Command.TYPE_ENGINE_STOP:
- content.writeByte(0x00);
+ content.writeByte(0x01);
return encodeContent(command.getDeviceId(), MSG_OUTPUT_CONTROL, content);
case Command.TYPE_ENGINE_RESUME:
- content.writeByte(0x01);
+ content.writeByte(0x00);
return encodeContent(command.getDeviceId(), MSG_OUTPUT_CONTROL, content);
case Command.TYPE_MOVEMENT_ALARM:
content.writeShort(((Number) attributes.get(Command.KEY_RADIUS)).intValue());