aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-26 20:38:07 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-07-26 20:38:07 -0700
commit28f036e793f374c9e74d78205e7d77760ae3aa85 (patch)
tree6c4499374edc12b32ae2d137e425809198fe8066 /src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java
parente474e607eb2938e1b2e7baef761587eba9726f71 (diff)
downloadtrackermap-server-28f036e793f374c9e74d78205e7d77760ae3aa85.tar.gz
trackermap-server-28f036e793f374c9e74d78205e7d77760ae3aa85.tar.bz2
trackermap-server-28f036e793f374c9e74d78205e7d77760ae3aa85.zip
Ruptela engine commands
Diffstat (limited to 'src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java
index fb0dcf690..442961b19 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolEncoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 - 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2016 - 2021 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,6 +58,12 @@ public class RuptelaProtocolEncoder extends BaseProtocolEncoder {
content.writeBytes(data.getBytes(StandardCharsets.US_ASCII));
return encodeContent(RuptelaProtocolDecoder.MSG_SMS_VIA_GPRS, content);
}
+ case Command.TYPE_ENGINE_STOP:
+ content.writeBytes("pass immobilizer 10".getBytes(StandardCharsets.US_ASCII));
+ return encodeContent(RuptelaProtocolDecoder.MSG_SMS_VIA_GPRS, content);
+ case Command.TYPE_ENGINE_RESUME:
+ content.writeBytes("pass resetimmob".getBytes(StandardCharsets.US_ASCII));
+ return encodeContent(RuptelaProtocolDecoder.MSG_SMS_VIA_GPRS, content);
case Command.TYPE_REQUEST_PHOTO:
content.writeByte(1); // sub-command
content.writeByte(0); // source