aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-29 10:46:33 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-29 10:46:33 -0800
commit20c24364739c794f3c005c1e070247e9bb6573f3 (patch)
treea37457c0e3869396f8bfb1aae172419d99267364 /src/main
parent2a61abfed15c12893290ee1d217103744f2697a6 (diff)
downloadtrackermap-server-20c24364739c794f3c005c1e070247e9bb6573f3.tar.gz
trackermap-server-20c24364739c794f3c005c1e070247e9bb6573f3.tar.bz2
trackermap-server-20c24364739c794f3c005c1e070247e9bb6573f3.zip
Fix tests
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/IotmProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java b/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java
index 0c8954ae9..ac92b299f 100644
--- a/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java
@@ -117,10 +117,10 @@ public class IotmProtocolDecoder extends BaseProtocolDecoder {
} else if (msg instanceof MqttSubscribeMessage) {
- MqttPublishMessage message = (MqttPublishMessage) msg;
+ MqttSubscribeMessage message = (MqttSubscribeMessage) msg;
MqttMessage response = MqttMessageBuilders.subAck()
- .packetId((short) message.variableHeader().packetId())
+ .packetId((short) message.variableHeader().messageId())
.build();
if (channel != null) {