hsy
5 天以前 bb0b80bd7ca7c1f979ab0125ae01f3faa1d14f4b
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;
 
}