Fix for QoS 0
This commit is contained in:
parent
75c0c5b3d0
commit
b0acf23c6d
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user