Commit 6488d5bcaa9df75c6fb5d264ec0732f68ebfcbfe

Authored by YunaiV
1 parent d1b2fb41

review:【IoT 物联网】mqtt 协议的 review

yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/device/message/IotDeviceMessageServiceImpl.java
@@ -149,8 +149,7 @@ public class IotDeviceMessageServiceImpl implements IotDeviceMessageService { @@ -149,8 +149,7 @@ public class IotDeviceMessageServiceImpl implements IotDeviceMessageService {
149 return; 149 return;
150 } 150 }
151 try { 151 try {
152 - IotDeviceMessage replyMessage = IotDeviceMessage.replyOf(message.getRequestId(), message.getMethod(),  
153 - replyData, 152 + IotDeviceMessage replyMessage = IotDeviceMessage.replyOf(message.getRequestId(), message.getMethod(), replyData,
154 serviceException != null ? serviceException.getCode() : null, 153 serviceException != null ? serviceException.getCode() : null,
155 serviceException != null ? serviceException.getMessage() : null); 154 serviceException != null ? serviceException.getMessage() : null);
156 sendDeviceMessage(replyMessage, device, message.getServerId()); 155 sendDeviceMessage(replyMessage, device, message.getServerId());
yudao-module-iot/yudao-module-iot-core/src/main/java/cn/iocoder/yudao/module/iot/core/enums/IotDeviceMessageMethodEnum.java
@@ -24,6 +24,7 @@ public enum IotDeviceMessageMethodEnum implements ArrayValuable<String> { @@ -24,6 +24,7 @@ public enum IotDeviceMessageMethodEnum implements ArrayValuable<String> {
24 24
25 // ========== 设备属性 ========== 25 // ========== 设备属性 ==========
26 // 可参考 https://help.aliyun.com/zh/iot/user-guide/device-properties-events-and-services 26 // 可参考 https://help.aliyun.com/zh/iot/user-guide/device-properties-events-and-services
  27 + // TODO @haohao:使用 report 哈;
27 PROPERTY_POST("thing.property.post", true), 28 PROPERTY_POST("thing.property.post", true),
28 PROPERTY_REPORT("thing.property.report", true), 29 PROPERTY_REPORT("thing.property.report", true),
29 30
yudao-module-iot/yudao-module-iot-gateway/src/main/java/cn/iocoder/yudao/module/iot/gateway/enums/IotDeviceTopicEnum.java
@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.iot.gateway.enums; @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.iot.gateway.enums;
3 import lombok.Getter; 3 import lombok.Getter;
4 import lombok.RequiredArgsConstructor; 4 import lombok.RequiredArgsConstructor;
5 5
  6 +// TODO @haohao:这个类,我们是不是可以删除了哈?
6 /** 7 /**
7 * IoT 设备主题枚举 8 * IoT 设备主题枚举
8 * <p> 9 * <p>