diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-12 20:58:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-12 20:59:04 -0700 |
commit | 74c4da689dff83f5f86c2941a686dd81e96ed544 (patch) | |
tree | c5a4d7143562a6f96555775029f305005ab9c5da /src/main/java/org/traccar/protocol | |
parent | 995c0281f2360ec933fb4f089813bd633671a0b8 (diff) | |
download | trackermap-server-74c4da689dff83f5f86c2941a686dd81e96ed544.tar.gz trackermap-server-74c4da689dff83f5f86c2941a686dd81e96ed544.tar.bz2 trackermap-server-74c4da689dff83f5f86c2941a686dd81e96ed544.zip |
Fix response
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/StbProtocolDecoder.java | 2 |
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"); |