1、命令行增加第二DTU配置
This commit is contained in:
parent
3b5b48833c
commit
cb364256f4
@ -65,7 +65,7 @@ public class CmdLineController extends BasicController{
|
||||
String sendCmd = cmd.replaceAll(" +","");
|
||||
short len = 0;
|
||||
int msgType = 0xD310 + cmdType;
|
||||
if(cmdType == 1 || cmdType==11){ // DTU,string format
|
||||
if(cmdType == 10 || cmdType==11){ // DTU,string format
|
||||
len = (short) (sendCmd.length() + 5);
|
||||
sendCmd = Integer.toHexString(msgType) + HexUtil.Short2HexString(len)+
|
||||
HexUtil.Int2HexString(Integer.parseInt(deviceId))+
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user