From 74c4da689dff83f5f86c2941a686dd81e96ed544 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 12 Jul 2021 20:58:58 -0700 Subject: Fix response --- src/main/java/org/traccar/protocol/StbProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3