Browse Source
Merge pull request #841 from thingsboard/fix-for-qos-0
Fix for QoS 0
pull/853/head
Andrew Shvayka
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
transport/mqtt/src/main/java/org/thingsboard/server/transport/mqtt/session/GatewayDeviceSessionCtx.java
|
|
|
@ -86,7 +86,7 @@ public class GatewayDeviceSessionCtx extends DeviceAwareSessionContext { |
|
|
|
if (responseMsg.isSuccess()) { |
|
|
|
SessionMsgType requestMsgType = responseMsg.getRequestMsgType(); |
|
|
|
Integer requestId = responseMsg.getRequestId(); |
|
|
|
if (requestId >= 0 && requestMsgType == SessionMsgType.POST_ATTRIBUTES_REQUEST || requestMsgType == SessionMsgType.POST_TELEMETRY_REQUEST) { |
|
|
|
if (requestId >= 0 && (requestMsgType == SessionMsgType.POST_ATTRIBUTES_REQUEST || requestMsgType == SessionMsgType.POST_TELEMETRY_REQUEST)) { |
|
|
|
return Optional.of(MqttTransportHandler.createMqttPubAckMsg(requestId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|