aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar')
-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) {