Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function dataValueToString(dataValue) {
if (!dataValue.value || dataValue.value.value === null) {
return " : " + dataValue.statusCode.toString();
}
switch (dataValue.value.arrayType) {
case opcua.VariantArrayType.Scalar:
return dataValue.toString();
case opcua.VariantArrayType.Array:
return dataValue.toString();
default:
return "";
}
}
function dataValueToString(dataValue) {
if (!dataValue.value || dataValue.value.value === null) {
return " : " + dataValue.statusCode.toString();
}
switch (dataValue.value.arrayType) {
case opcua.VariantArrayType.Scalar:
return dataValue.toString();
case opcua.VariantArrayType.Array:
return dataValue.toString();
default:
return "";
}
}