2026-08-07 d65c665b483f9c7b57358d4ad2c4bf3c6e1f9608
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package cn.iocoder.yudao.module.iot.framework.iot.config;
 
import lombok.Data;
import org.springframework.stereotype.Component;
 
import java.time.Duration;
 
/**
 * 超级管理员 IoT 全局配置类
 *
 * @author 超级管理员
 */
@Component
@Data
public class YudaoIotProperties {
 
    /**
     * 设备连接超时时间
     */
    private Duration keepAliveTime = Duration.ofMinutes(10);
    /**
     * 设备连接超时时间的因子
     *
     * 因为设备可能会有网络抖动,所以需要乘以一个因子,避免误判
     */
    private double keepAliveFactor = 1.5D;
 
}