diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-13 06:44:32 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-13 06:44:32 -0700 |
commit | 10aba298620884d6f018fe94cda9b1d4d4a9e20f (patch) | |
tree | b232880863e145976a4d8e615f4227e4e8d80164 | |
parent | 7237e4b515884721058993f2ccb8f06f8333b867 (diff) | |
download | trackermap-server-10aba298620884d6f018fe94cda9b1d4d4a9e20f.tar.gz trackermap-server-10aba298620884d6f018fe94cda9b1d4d4a9e20f.tar.bz2 trackermap-server-10aba298620884d6f018fe94cda9b1d4d4a9e20f.zip |
Fix deprecated
-rw-r--r-- | src/main/java/org/traccar/protocol/IotmProtocolDecoder.java | 4 |
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 57e4c736f..bdc691d27 100644 --- a/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/IotmProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 - 2021 Anton Tananaev (anton@traccar.org) + * Copyright 2020 - 2022 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -339,7 +339,7 @@ public class IotmProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedByte(); // checksum MqttMessage response = MqttMessageBuilders.pubAck() - .packetId((short) message.variableHeader().packetId()) + .packetId(message.variableHeader().packetId()) .build(); if (channel != null) { |