diff options
author | Turbovix <Turbovix@users.noreply.github.com> | 2017-06-16 21:25:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 21:25:57 -0300 |
commit | e1b7528fa282b836c45d8b47ca4fdb53a4654b78 (patch) | |
tree | 4d225123485484e297e27f947dbf4a1da2b2ab31 /src | |
parent | 3f5122cbaf1710ae8d6c1c7ca9cf6a647f9a3f94 (diff) | |
download | trackermap-server-e1b7528fa282b836c45d8b47ca4fdb53a4654b78.tar.gz trackermap-server-e1b7528fa282b836c45d8b47ca4fdb53a4654b78.tar.bz2 trackermap-server-e1b7528fa282b836c45d8b47ca4fdb53a4654b78.zip |
Update SuntechProtocolEncoder.java
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/SuntechProtocolEncoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolEncoder.java b/src/org/traccar/protocol/SuntechProtocolEncoder.java index 4a2b230f2..5b1c802fa 100644 --- a/src/org/traccar/protocol/SuntechProtocolEncoder.java +++ b/src/org/traccar/protocol/SuntechProtocolEncoder.java @@ -43,6 +43,10 @@ public class SuntechProtocolEncoder extends StringProtocolEncoder { return formatCommand(command, "SA200CMD;{%s};02;Enable1\r", Command.KEY_UNIQUE_ID); case Command.TYPE_ENGINE_RESUME: return formatCommand(command, "SA200CMD;{%s};02;Disable1\r", Command.KEY_UNIQUE_ID); + case Command.TYPE_ALARM_ARM: + return formatCommand(command, "SA200CMD;{%s};02;Enable2\r", Command.KEY_UNIQUE_ID); + case Command.TYPE_ALARM_DISARM: + return formatCommand(command, "SA200CMD;{%s};02;Disable2\r", Command.KEY_UNIQUE_ID); default: Log.warning(new UnsupportedOperationException(command.getType())); break; |