#update
This commit is contained in:
@@ -11,7 +11,6 @@ public interface FastBeeConstant {
|
||||
String UFT8 = "UTF-8";
|
||||
String GB2312 = "GB2312";
|
||||
|
||||
|
||||
String MQTT = "mqtt";
|
||||
String PORT = "port";
|
||||
String ADAPTER = "adapter";
|
||||
@@ -27,16 +26,16 @@ public interface FastBeeConstant {
|
||||
String WM_PREFIX = "server-";
|
||||
String FAST_PHONE = "phone-";
|
||||
|
||||
/*MQTT平台判定离线时间 keepAlive*1.5 */
|
||||
/* MQTT平台判定离线时间 keepAlive*1.5 */
|
||||
Long DEVICE_PING_EXPIRED = 90000L;
|
||||
}
|
||||
|
||||
interface CLIENT {
|
||||
//加盐
|
||||
// 加盐
|
||||
String TOKEN = "fastbee-smart!@#$123";
|
||||
}
|
||||
|
||||
/*webSocket配置*/
|
||||
/* webSocket配置 */
|
||||
interface WS {
|
||||
String HEART_BEAT = "heartbeat";
|
||||
String HTTP_SERVER_CODEC = "httpServerCodec";
|
||||
@@ -87,13 +86,13 @@ public interface FastBeeConstant {
|
||||
* 消息消费线程
|
||||
*/
|
||||
String MESSAGE_CONSUME_TASK = "messageConsumeTask";
|
||||
/*内部消费线程publish*/
|
||||
/* 内部消费线程publish */
|
||||
String MESSAGE_CONSUME_TASK_PUB = "messageConsumeTaskPub";
|
||||
/*内部消费线程Fetch*/
|
||||
/* 内部消费线程Fetch */
|
||||
String MESSAGE_CONSUME_TASK_FETCH = "messageConsumeTaskFetch";
|
||||
/*OTA升级延迟队列*/
|
||||
/* OTA升级延迟队列 */
|
||||
String DELAY_UPGRADE_TASK = "delayUpgradeTask";
|
||||
/*OTA升级线程池*/
|
||||
/* OTA升级线程池 */
|
||||
String OTA_THREAD_POOL = "otaThreadPoolTaskExecutor";
|
||||
|
||||
/**
|
||||
@@ -111,6 +110,10 @@ public interface FastBeeConstant {
|
||||
*/
|
||||
String MAP_MESSAGE_PUSH = "mapMessagePush";
|
||||
|
||||
/**
|
||||
* 规则触发任务
|
||||
*/
|
||||
String AUTO_RULE = "autoRule";
|
||||
|
||||
/**
|
||||
* 设备任务处理线程
|
||||
@@ -128,67 +131,66 @@ public interface FastBeeConstant {
|
||||
|
||||
String PREDIX = "/+/+";
|
||||
|
||||
/*OTA消息回复*/
|
||||
/* OTA消息回复 */
|
||||
String OTA_REPLY = "upgrade/reply";
|
||||
|
||||
}
|
||||
|
||||
/*集群,全局发布的消息类型*/
|
||||
/* 集群,全局发布的消息类型 */
|
||||
interface CHANNEL {
|
||||
/*设备状态*/
|
||||
/* 设备状态 */
|
||||
String DEVICE_STATUS = "device_status";
|
||||
/*平台读取属性*/
|
||||
/* 平台读取属性 */
|
||||
String PROP_READ = "prop_read";
|
||||
/*推送消息*/
|
||||
/* 推送消息 */
|
||||
String PUBLISH = "publish";
|
||||
/*服务下发*/
|
||||
/* 服务下发 */
|
||||
String FUNCTION_INVOKE = "function_invoke";
|
||||
/*事件*/
|
||||
/* 事件 */
|
||||
String EVENT = "event";
|
||||
/*other*/
|
||||
/* other */
|
||||
String OTHER = "other";
|
||||
/*Qos1 推送应答*/
|
||||
/* Qos1 推送应答 */
|
||||
String PUBLISH_ACK = "publish_ack";
|
||||
/*Qos2 发布消息收到*/
|
||||
/* Qos2 发布消息收到 */
|
||||
String PUB_REC = "pub_rec";
|
||||
/*Qos 发布消息释放*/
|
||||
/* Qos 发布消息释放 */
|
||||
String PUB_REL = "pub_rel";
|
||||
/*Qos2 发布消息完成*/
|
||||
/* Qos2 发布消息完成 */
|
||||
String PUB_COMP = "pub_comp";
|
||||
|
||||
String UPGRADE = "upgrade";
|
||||
|
||||
/*-------------------------ROCKETMQ-------------------------*/
|
||||
String SUFFIX = "group";
|
||||
/*设备状态*/
|
||||
/* 设备状态 */
|
||||
String DEVICE_STATUS_GROUP = DEVICE_STATUS + SUFFIX;
|
||||
String PROP_READ_GROUP = PROP_READ + SUFFIX;
|
||||
/*服务下发*/
|
||||
/* 服务下发 */
|
||||
String FUNCTION_INVOKE_GROUP = FUNCTION_INVOKE + SUFFIX;
|
||||
/*推送消息*/
|
||||
/* 推送消息 */
|
||||
String PUBLISH_GROUP = PUBLISH + SUFFIX;
|
||||
/*Qos1 推送应答*/
|
||||
/* Qos1 推送应答 */
|
||||
String PUBLISH_ACK_GROUP = PUBLISH_ACK + SUFFIX;
|
||||
/*Qos2 发布消息收到*/
|
||||
/* Qos2 发布消息收到 */
|
||||
String PUB_REC_GROUP = PUB_REC + SUFFIX;
|
||||
/*Qos 发布消息释放*/
|
||||
/* Qos 发布消息释放 */
|
||||
String PUB_REL_GROUP = PUB_REL + SUFFIX;
|
||||
/*Qos2 发布消息完成*/
|
||||
/* Qos2 发布消息完成 */
|
||||
String PUB_COMP_GROUP = PUB_COMP + SUFFIX;
|
||||
/*OTA升级*/
|
||||
/* OTA升级 */
|
||||
String UPGRADE_GROUP = UPGRADE + SUFFIX;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* redisKey 定义
|
||||
*/
|
||||
interface REDIS {
|
||||
/*在线设备列表*/
|
||||
/* 在线设备列表 */
|
||||
String DEVICE_ONLINE_LIST = "device:online:list";
|
||||
/*设备实时状态key*/
|
||||
/* 设备实时状态key */
|
||||
String DEVICE_RUNTIME_DATA = "device:runtime:";
|
||||
/*通讯协议参数*/
|
||||
/* 通讯协议参数 */
|
||||
String DEVICE_PROTOCOL_PARAM = "device:param:";
|
||||
/**
|
||||
* 设备消息id缓存key
|
||||
@@ -227,11 +229,11 @@ public interface FastBeeConstant {
|
||||
*/
|
||||
String MESSAGE_RETAIN_TOTAL = "message:retain:total";
|
||||
|
||||
/*发送消息数*/
|
||||
/* 发送消息数 */
|
||||
String MESSAGE_SEND_TOTAL = "message:send:total";
|
||||
/*接收消息数*/
|
||||
/* 接收消息数 */
|
||||
String MESSAGE_RECEIVE_TOTAL = "message:receive:total";
|
||||
/*连接次数*/
|
||||
/* 连接次数 */
|
||||
String MESSAGE_CONNECT_TOTAL = "message:connect:total";
|
||||
/**
|
||||
* 认证次数
|
||||
@@ -316,7 +318,6 @@ public interface FastBeeConstant {
|
||||
String CH = "CH";
|
||||
String ModbusTcp = "MODBUS-TCP";
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface URL {
|
||||
|
||||
Reference in New Issue
Block a user