修改设备端对接

This commit is contained in:
HycJack
2026-04-16 21:13:06 +08:00
parent a22fcafea9
commit 602f0f7737
19 changed files with 1385 additions and 60 deletions

View File

@@ -37,6 +37,16 @@ class Settings(BaseSettings):
db_name: str = "talkingq"
db_echo: bool = False # 是否打印SQL语句
# TalkingQ设备MQTT命令服务配置
talkingq_mqtt_broker: str = "broker.emqx.io"
talkingq_mqtt_port: int = 1883
talkingq_mqtt_username: str = ""
talkingq_mqtt_password: str = ""
talkingq_mqtt_device_prefix: str = "TalkingQ"
talkingq_mqtt_qos: int = 1
talkingq_mqtt_keepalive: int = 60
talkingq_mqtt_nfc_notice_interval: int = 600
admin_api_key: str # 用于设备注册的管理员API密钥
client_api_key: str # 用于微信小程序客户端验证的API密钥