1. 替换原始 code 签名
2. 服务与模块生成器,支持指定起始端口批量端口分配
(cherry picked from commit e99da38fd4)
This commit is contained in:
@@ -8,7 +8,7 @@ import cn.iocoder.yudao.module.iot.api.device.dto.control.downstream.*;
|
||||
*
|
||||
* 目的:每个 plugin 需要实现,用于处理 server 下行的指令(请求),从而实现从 server => plugin => device 的下行流程
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author ZT
|
||||
*/
|
||||
public interface IotDeviceDownstreamHandler {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
/**
|
||||
* IoT 设备下行服务端,接收来自 server 服务器的请求,转发给 device 设备
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author ZT
|
||||
*/
|
||||
@Slf4j
|
||||
public class IotDeviceDownstreamServer {
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.springframework.http.MediaType;
|
||||
/**
|
||||
* IoT 插件的通用工具类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author ZT
|
||||
*/
|
||||
public class IotPluginCommonUtils {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
/**
|
||||
* 物联网插件 - EMQX 配置
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author ZT
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "yudao.iot.plugin.emqx")
|
||||
@Validated
|
||||
|
||||
@@ -18,7 +18,7 @@ import static cn.iocoder.yudao.module.iot.enums.ErrorCodeConstants.MQTT_TOPIC_IL
|
||||
/**
|
||||
* EMQX 插件的 {@link IotDeviceDownstreamHandler} 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author ZT
|
||||
*/
|
||||
@Slf4j
|
||||
public class IotDeviceDownstreamHandlerImpl implements IotDeviceDownstreamHandler {
|
||||
|
||||
@@ -12,7 +12,7 @@ import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeC
|
||||
* 但是:由于设备通过 HTTP 短链接接入,导致其实无法下行指导给 device 设备,所以基本都是直接返回失败!!!
|
||||
* 类似 MQTT、WebSocket、TCP 插件,是可以实现下行指令的。
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author ZT
|
||||
*/
|
||||
public class IotDeviceDownstreamHandlerImpl implements IotDeviceDownstreamHandler {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user