1、命令行增加第二DTU配置

This commit is contained in:
weidong 2024-09-01 15:41:46 +08:00
parent 3b5b48833c
commit cb364256f4

View File

@ -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))+