zuoxiao
3 天以前 39688299c37a4afc68afb705127948bf1e5e7e7f
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol4Mqtt/MqttTopic.java
@@ -16,6 +16,19 @@
    public String orgTag ;//组织标识
    public String protocol ;//协议名称
    public String devId ;//设备(FBox)ID
    public String topic ;//消息主题
    public String type;//测站类型
    public Integer no;//测站编号
    public boolean isEmpty(){
        return orgTag == null || protocol == null || devId == null || type == null || no == null
                || orgTag.trim().length() == 0 || protocol.trim().length() == 0 || devId.trim().length() == 0 || type.trim().length() == 0 || no <= 0 ;
    }
    public String shortName(){
        return type + "/" + no;
    }
    public String longName(){
        return orgTag + "/" + protocol + "/" + devId + "/" + type + "/" + no;
    }
}