feat(base): 集成 MQTT 并添加屏幕状态监听
- 初始化 HiveMQ MQTT 客户端并连接 Broker,订阅命令主题 - 添加屏幕亮灭广播监听,支持上报设备亮屏/熄屏状态 - 新增 MQTT 配置(地址、主题等)及 SystemUtils 屏幕状态查询方法 - 添加 HiveMQ 依赖并配置 ProGuard 混淆规则与打包排除项
This commit is contained in:
@@ -3,6 +3,16 @@ package com.ttstd.dialer.config;
|
||||
public class CommonConfig {
|
||||
public static final String MMKV_ID = "InterProcessKV";
|
||||
|
||||
/*MQTT 配置*/
|
||||
public static final String MQTT_URL = "mqtt://175.178.213.60:1883";
|
||||
public static final String MQTT_CLIENT_ID = "ttstd-dialer-android";
|
||||
public static final String MQTT_USERNAME = "";
|
||||
public static final String MQTT_PASSWORD = "";
|
||||
/*订阅主题*/
|
||||
public static final String MQTT_TOPIC_COMMAND = "ttstd/device/command";
|
||||
/*发布主题*/
|
||||
public static final String MQTT_TOPIC_STATUS = "ttstd/device/status";
|
||||
|
||||
public static final String CONTACT_HOME_PAGE = "contact_home_page_key";
|
||||
|
||||
public static final String FLOAT_WINDOW_X = "float_window_x_key";
|
||||
|
||||
Reference in New Issue
Block a user