|  |  |  | 
|---|
|  |  |  | public Short protocolVersion; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * RTU 地址 | 
|---|
|  |  |  | * RTU地址 和 FBox设备号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public String rtuAddr ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | s += (protocol == null ? "" : ("协议=" + protocol + "\n")); | 
|---|
|  |  |  | s += (protocolVersion == null ? "" : ("协议版本号=" + protocolVersion + "\n")); | 
|---|
|  |  |  | s += (rtuAddr == null ? "" : ("Rtu地址=" + rtuAddr + "\n")); | 
|---|
|  |  |  | s += "命令类型=" + (type.equals(CommandType.innerCommand)?"内部命令":(type.equals(CommandType.outerCommand)?"RTU命令":"透传命令")) + "\n" ; | 
|---|
|  |  |  | s += "命令类型=" + ( | 
|---|
|  |  |  | type.equals(CommandType.innerCommand)?"内部命令":( | 
|---|
|  |  |  | type.equals(CommandType.outerCommand)?"RTU命令":( | 
|---|
|  |  |  | type.equals(CommandType.mqttCommand)?"MQTT命令":( | 
|---|
|  |  |  | type.equals(CommandType.outerTransCommand)?"透传命令": | 
|---|
|  |  |  | "")))) + "\n" ; | 
|---|
|  |  |  | s += (code == null ? "" : ("功能码=" + code + "\n")) ; | 
|---|
|  |  |  | s += (rtuResultSendWebUrl == null ? "" : ("回调网址=" + rtuResultSendWebUrl + "\n")); | 
|---|
|  |  |  | if(param != null){ | 
|---|