Commit 550af81f9c6eb93df6515412ec6dc9907921f2f9

Authored by ShvaykaD
1 parent ec057511

updated variable name in the TopicType enum: change Request to Response

... ... @@ -965,7 +965,7 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement
965 965 @Override
966 966 public void onGetAttributesResponse(TransportProtos.GetAttributeResponseMsg response) {
967 967 log.trace("[{}] Received get attributes response", sessionId);
968   - String topicBase = attrReqTopicType.getAttributesRequestTopicBase();
  968 + String topicBase = attrReqTopicType.getAttributesResponseTopicBase();
969 969 MqttTransportAdaptor adaptor = deviceSessionCtx.getAdaptor(attrReqTopicType);
970 970 try {
971 971 adaptor.convertToPublish(deviceSessionCtx, response, topicBase).ifPresent(deviceSessionCtx.getChannel()::writeAndFlush);
... ...
... ... @@ -26,7 +26,7 @@ public enum TopicType {
26 26 V2_PROTO(MqttTopics.DEVICE_ATTRIBUTES_RESPONSE_SHORT_PROTO_TOPIC_PREFIX, MqttTopics.DEVICE_ATTRIBUTES_SHORT_PROTO_TOPIC, MqttTopics.DEVICE_RPC_REQUESTS_SHORT_PROTO_TOPIC, MqttTopics.DEVICE_RPC_RESPONSE_SHORT_PROTO_TOPIC);
27 27
28 28 @Getter
29   - private final String attributesRequestTopicBase;
  29 + private final String attributesResponseTopicBase;
30 30
31 31 @Getter
32 32 private final String attributesSubTopic;
... ... @@ -38,7 +38,7 @@ public enum TopicType {
38 38 private final String rpcResponseTopicBase;
39 39
40 40 TopicType(String attributesRequestTopicBase, String attributesSubTopic, String rpcRequestTopicBase, String rpcResponseTopicBase) {
41   - this.attributesRequestTopicBase = attributesRequestTopicBase;
  41 + this.attributesResponseTopicBase = attributesRequestTopicBase;
42 42 this.attributesSubTopic = attributesSubTopic;
43 43 this.rpcRequestTopicBase = rpcRequestTopicBase;
44 44 this.rpcResponseTopicBase = rpcResponseTopicBase;
... ...