aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-12 20:58:58 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-07-12 20:59:04 -0700
commit74c4da689dff83f5f86c2941a686dd81e96ed544 (patch)
treec5a4d7143562a6f96555775029f305005ab9c5da
parent995c0281f2360ec933fb4f089813bd633671a0b8 (diff)
downloadtrackermap-server-74c4da689dff83f5f86c2941a686dd81e96ed544.tar.gz
trackermap-server-74c4da689dff83f5f86c2941a686dd81e96ed544.tar.bz2
trackermap-server-74c4da689dff83f5f86c2941a686dd81e96ed544.zip
Fix response
-rw-r--r--src/main/java/org/traccar/protocol/StbProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/StbProtocolDecoder.java b/src/main/java/org/traccar/protocol/StbProtocolDecoder.java
index 7e25674b9..0e4f030cf 100644
--- a/src/main/java/org/traccar/protocol/StbProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/StbProtocolDecoder.java
@@ -51,7 +51,7 @@ public class StbProtocolDecoder extends BaseProtocolDecoder {
JsonObject root = Json.createReader(new StringReader((String) msg)).readObject();
Response response = new Response();
- response.type = root.getInt("msgType");
+ response.type = root.getInt("msgType") + 1;
response.deviceId = root.getString("devId");
response.result = 1;
response.transaction = root.getString("txnNo");