updated variable name in the TopicType enum: change Request to Response
This commit is contained in:
parent
ec05751198
commit
550af81f9c
@ -965,7 +965,7 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement
|
||||
@Override
|
||||
public void onGetAttributesResponse(TransportProtos.GetAttributeResponseMsg response) {
|
||||
log.trace("[{}] Received get attributes response", sessionId);
|
||||
String topicBase = attrReqTopicType.getAttributesRequestTopicBase();
|
||||
String topicBase = attrReqTopicType.getAttributesResponseTopicBase();
|
||||
MqttTransportAdaptor adaptor = deviceSessionCtx.getAdaptor(attrReqTopicType);
|
||||
try {
|
||||
adaptor.convertToPublish(deviceSessionCtx, response, topicBase).ifPresent(deviceSessionCtx.getChannel()::writeAndFlush);
|
||||
|
||||
@ -26,7 +26,7 @@ public enum TopicType {
|
||||
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);
|
||||
|
||||
@Getter
|
||||
private final String attributesRequestTopicBase;
|
||||
private final String attributesResponseTopicBase;
|
||||
|
||||
@Getter
|
||||
private final String attributesSubTopic;
|
||||
@ -38,7 +38,7 @@ public enum TopicType {
|
||||
private final String rpcResponseTopicBase;
|
||||
|
||||
TopicType(String attributesRequestTopicBase, String attributesSubTopic, String rpcRequestTopicBase, String rpcResponseTopicBase) {
|
||||
this.attributesRequestTopicBase = attributesRequestTopicBase;
|
||||
this.attributesResponseTopicBase = attributesRequestTopicBase;
|
||||
this.attributesSubTopic = attributesSubTopic;
|
||||
this.rpcRequestTopicBase = rpcRequestTopicBase;
|
||||
this.rpcResponseTopicBase = rpcResponseTopicBase;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user