| package com.dy.rtuMw.server.mqtt; | 
|   | 
| /** | 
|  * @Author: liurunyu | 
|  * @Date: 2025/6/4 14:46 | 
|  * @Description | 
|  */ | 
| public class MqttUnitConfigVo { | 
|     public Boolean showStartInfo ; | 
|     public Boolean enable ;//模块是否启动 | 
|     public String svIp ;// | 
|     public Integer svPort ;// | 
|     public String svUserName ;// | 
|     public String svUserPassword ;// | 
|     public Integer poolMaxSize ;// | 
|     public Long sendInterval ;// | 
|     public Integer reSendTimesByNoResult ;// | 
|     public Long comCacheTimeout ;// | 
|     public Boolean useMemoryPersistence ; | 
|     public String[] protocolAndDeviceIds ;//设备协议与ID(FBox)id | 
|     public String[] deviceIds ;//设备(FBox)id | 
|     public String[] subTopics ;//订阅的主题 | 
|     public int[] subTopicsQos;//订阅主题的Qos | 
|     public int pubTopicQos;//发布消息的Qos | 
|     public Long noSubThenOff; //MQtt设备在一定时间后未发布消息,认为设备离线 | 
|   | 
|     public MqttUnitConfigVo(){ | 
|         this.enable = false ; | 
|         this.svIp = "127.0.0.1" ; | 
|         this.svPort = 1883 ; | 
|         this.svUserName = "dyyjy" ; | 
|         this.svUserPassword = "Dyyjy2025,;.abc!@#" ; | 
|         this.poolMaxSize = 10 ; | 
|         this.sendInterval = 60000L ; | 
|         this.reSendTimesByNoResult = 0 ; | 
|         this.comCacheTimeout = 60000L ; | 
|         this.useMemoryPersistence = true ; | 
|         this.pubTopicQos = 1 ; | 
|         this.noSubThenOff = 10 * 60 * 10000L ; | 
|     } | 
| } |