|
|
|
@ -83,7 +83,7 @@ public class GatewayDeviceSessionCtx extends DeviceAwareSessionContext { |
|
|
|
if (responseMsg.isSuccess()) { |
|
|
|
MsgType requestMsgType = responseMsg.getRequestMsgType(); |
|
|
|
Integer requestId = responseMsg.getRequestId(); |
|
|
|
if (requestMsgType == MsgType.POST_ATTRIBUTES_REQUEST || requestMsgType == MsgType.POST_TELEMETRY_REQUEST) { |
|
|
|
if (requestId >= 0 && requestMsgType == MsgType.POST_ATTRIBUTES_REQUEST || requestMsgType == MsgType.POST_TELEMETRY_REQUEST) { |
|
|
|
return Optional.of(MqttTransportHandler.createMqttPubAckMsg(requestId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|