#init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.fastbee.common;
|
||||
|
||||
public class CommandConstant {
|
||||
|
||||
public static byte remoteControl = (byte)0x00;
|
||||
|
||||
public static byte heartbeat = (byte)0xff;
|
||||
|
||||
public static byte path = (byte)0x01;
|
||||
|
||||
public static byte status = (byte)0x02;
|
||||
|
||||
public static byte connect = (byte)0x03;
|
||||
|
||||
public static byte interaction = (byte)0x12; //主要用于推送状态消息等
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.fastbee.common;
|
||||
|
||||
import io.netty.util.AttributeKey;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Constant {
|
||||
|
||||
public static final AttributeKey<String> ATT_DEVICE_ID = AttributeKey.valueOf("deviceId");
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.fastbee.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
public class NettyCacheKey {
|
||||
|
||||
public static final String deviceRunningStatusKey = "running_status:";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user