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

This commit is contained in:
YunaiV 2025-06-12 22:07:39 +08:00
parent d1b2fb41ae
commit 6488d5bcaa
3 changed files with 3 additions and 2 deletions

View File

@ -149,8 +149,7 @@ public class IotDeviceMessageServiceImpl implements IotDeviceMessageService {
return;
}
try {
IotDeviceMessage replyMessage = IotDeviceMessage.replyOf(message.getRequestId(), message.getMethod(),
replyData,
IotDeviceMessage replyMessage = IotDeviceMessage.replyOf(message.getRequestId(), message.getMethod(), replyData,
serviceException != null ? serviceException.getCode() : null,
serviceException != null ? serviceException.getMessage() : null);
sendDeviceMessage(replyMessage, device, message.getServerId());

View File

@ -24,6 +24,7 @@ public enum IotDeviceMessageMethodEnum implements ArrayValuable<String> {
// ========== 设备属性 ==========
// 可参考 https://help.aliyun.com/zh/iot/user-guide/device-properties-events-and-services
// TODO @haohao使用 report
PROPERTY_POST("thing.property.post", true),
PROPERTY_REPORT("thing.property.report", true),

View File

@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.iot.gateway.enums;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
// TODO @haohao这个类我们是不是可以删除了哈
/**
* IoT 设备主题枚举
* <p>