# # MQTT 配置
# broker = "192.168.35.178"  # 代理地址
# port = 31883               # 端口
# username = "cmlc"
# password = "odD8#Ve7.B"
#
# # check.py 使用的topic
# MQTT_TOPIC = "bridge/DP74b4ef9fb4aaf269/device_data/FU_PAM/+"
#
# # Dev_Fusion.py 使用的topic
# SENSOR_TOPIC = "fromcheck/DP74b4ef9fb4aaf269/device_data/FU_PAM/+"

#  在 check 中去配置   Dev_Fusion.py启动命令
DEV_FUSION_G = 40  # 参数 g
DEV_FUSION_I = 0.6  # 参数 i

#KF_V2设置
shift_value = 1
survive_initial = 0.25
decay = 0.7      
show_thres = 0.4
reference_point = (104.08, 30.51)

# logs 配置
DISCONNECT_REASONS = {
    0: "正常断开",
    1: "协议版本不匹配",
    2: "客户端标识符无效",
    3: "服务器不可用",
    4: "用户名或密码错误",
    5: "未授权",
    6: "消息代理不可用",
    7: "TLS错误",
    8: "QoS不支持",
    9: "客户端已被禁止",
    10: "服务器繁忙",
    11: "客户端已被禁止（证书相关）",
    128: "未指定错误",
    129: "畸形数据包",
    130: "协议错误",
    131: "通信错误",
    132: "服务器保持连接超时",
    133: "服务器内部错误",
    134: "服务器正在关闭",
    135: "服务器资源不足",
    136: "客户端网络套接字错误",
    137: "服务器正在关闭连接",
    138: "服务器拒绝连接",
    139: "服务器不支持该版本",
    140: "客户端ID已被使用",
    141: "连接速率超限",
    142: "最大连接数超限",
    143: "保持连接超时",
    144: "会话被接管",
    145: "连接已断开",
    146: "主题别名无效",
    147: "数据包太大",
    148: "消息速率太高",
    149: "配额超限",
    150: "管理行为",
    151: "无效的负载格式",
    152: "保留未支持",
    153: "QoS未支持",
    154: "使用另一个服务器",
    155: "服务器已迁移",
    156: "连接不支持",
}
