1078-终端参数回显

This commit is contained in:
panlinlin
2024-06-10 15:20:48 +08:00
parent 3410fae879
commit 824690a37f
3 changed files with 93 additions and 33 deletions

View File

@@ -26,7 +26,7 @@ public class JTDeviceConfig {
private Long udpRetransmissionCount;
@ConfigAttribute(id = 0x6, type="Long", description = "SMS 消息应答超时时间,单位为秒(s)")
private Long smsResponseTimeout;
private Long smsResponseTimeout;
@ConfigAttribute(id = 0x7, type="Long", description = "SMS 消息重传次数")
private Long smsRetransmissionCount;

View File

@@ -136,7 +136,7 @@ public class J0104 extends Re {
Method methodForChannelParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), JTChannelParam.class);
methodForChannelParam.invoke(deviceConfig, channelParam);
continue;
case "alarmRecordingParam":
case "AlarmRecordingParam":
JTAlarmRecordingParam alarmRecordingParam = JTAlarmRecordingParam.decode(buf);
Method methodForAlarmRecordingParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), JTAlarmRecordingParam.class);
methodForAlarmRecordingParam.invoke(deviceConfig, alarmRecordingParam);