review:【IoT 物联网】mqtt 协议的 review
This commit is contained in:
parent
d1b2fb41ae
commit
6488d5bcaa
|
@ -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());
|
||||
|
|
|
@ -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),
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.iot.gateway.enums;
|
|||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
// TODO @haohao:这个类,我们是不是可以删除了哈?
|
||||
/**
|
||||
* IoT 设备主题枚举
|
||||
* <p>
|
||||
|
|
Loading…
Reference in New Issue