You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**pvs = RequestUtils.readProperties(localDevice, remoteDevice, refs, false, null);** is no result 。The method is blocked,It prevents my program from continuing execution
The text was updated successfully, but these errors were encountered:
Timeout is already existing in the form of PropertyIdentifier.APDUTimeOut.
Without setting the PropertyIdentifier.SegmentationSupported and ProeprtyIdentifier.APDUTimeout of the remote device, readProperty or equivalent message cannot be sent.
Please check whether these properties are properly set.
@OverRide
public String getPointValue(RemoteDevice remoteDevice, ObjectIdentifier oid, PropertyIdentifier propertyIdentifier) throws RuntimeException {
PropertyValues pvs;
String value = "";
try {
PropertyReferences refs = new PropertyReferences();
refs.add(oid, propertyIdentifier);
pvs = RequestUtils.readProperties(localDevice, remoteDevice, refs, false, null);
log.info("pvs获取成功");
Encodable result = pvs.get(oid, propertyIdentifier);
value = result.toString();
log.info("正常获取设备点位数据:" + value);
} catch (Exception e) {
log.error("获取点位值出现异常",e);
if (propertyIdentifier.equals(PropertyIdentifier.presentValue)) {
log.error("{} {} {}: 无法获取到 {} 属性",
remoteDevice.getInstanceNumber(),
oid.getObjectType().toString(),
oid.getInstanceNumber(),
propertyIdentifier,
e);
throw new RuntimeException(remoteDevice.getInstanceNumber() + " " + oid.getObjectType().toString() + " " + oid.getInstanceNumber() + ":无法获取到" + propertyIdentifier.toString() + "属性",e);
}
}
return value;
}
The text was updated successfully, but these errors were encountered: