2026-06-24 f4bd1f3c89d906131495a0aca5aaf82966378510
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;
 
}