vince
2023-11-08 96f7af2f3bf9a36dd48e0e6bf4f8a8ca1e31ed7d
src/main/java/com/fzzy/mqtt/MqttProperties.java
@@ -22,39 +22,44 @@
    /**
     * 用户名
     */
    private String clientUsername;
    private String username;
    /**
     * 密码
     */
    private String clientPassword;
    private String password;
    /**
     * 客户端Id,同一台服务器下,不允许出现重复的客户端id
     * 客户端Id-发布者Id
     */
    private String clientId;
    private String clientOutId;
    /**
     * 客户端Id-被订阅者Id
     */
    private String clientInId;
    /**
     * 超时时间
     */
    private int clientTimeout = 5000;
    private int timout = 5000;
    /**
     * 设置会话心跳时间 单位为秒 服务器会每隔1.5*20秒的时间向客户端
     * 发送个消息判断客户端是否在线,但这个方法并没有重连的机制
     */
    private int clientAliveTime = 30000;
    private int keepAliveInterval = 20;
    private int clientMaxConnectTime;
    private int maxConnectTimes = 5;
    private String clientTopics;
    private String topics;
    /**
     * 连接方式
     */
    private Integer clientQos = 0;
    private Integer qos = 0;
    /**
     * 默认连接主题,以/#结尾表示订阅所有以test开头的主题