How to use the node-opcua-client.accessLevelFlagToString function in node-opcua-client

To help you get started, we’ve selected a few node-opcua-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / opcua-commander / index.js View on Github external
case opcua.AttributeIds.Description:
        case opcua.AttributeIds.ValueRank:
        case opcua.AttributeIds.ArrayDimensions:
        case opcua.AttributeIds.Executable:
        case opcua.AttributeIds.UserExecutable:
        case opcua.AttributeIds.MinimumSamplingInterval:
            if (!dataValue.value.value) {
                return "null";
            }
            return dataValue.value.value.toString();
        case opcua.AttributeIds.UserAccessLevel:
        case opcua.AttributeIds.AccessLevel:
            if (!dataValue.value.value) {
                return "null";
            }
            return opcua.accessLevelFlagToString(dataValue.value.value) + " (" + dataValue.value.value + ")";
        default:
            return dataValueToString(dataValue);
    }
}
github node-opcua / opcua-commander / lib / model / model.ts View on Github external
case AttributeIds.Description:
        case AttributeIds.ValueRank:
        case AttributeIds.ArrayDimensions:
        case AttributeIds.Executable:
        case AttributeIds.UserExecutable:
        case AttributeIds.MinimumSamplingInterval:
            if (!dataValue.value.value) {
                return "null";
            }
            return dataValue.value.value.toString();
        case AttributeIds.UserAccessLevel:
        case AttributeIds.AccessLevel:
            if (!dataValue.value.value) {
                return "null";
            }
            return accessLevelFlagToString(dataValue.value.value) + " (" + dataValue.value.value + ")";
        default:
            return dataValueToString(dataValue);
    }
}