How to use the node-opcua-basic-types.isValidBoolean function in node-opcua-basic-types

To help you get started, we’ve selected a few node-opcua-basic-types 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 / node-opcua / packages / node-opcua-address-space-for-conformance-testing / src / address_space_for_conformance_testing.js View on Github external
enabledVariable.on("value_changed", function(dataValue/*,indexRange*/) {
        const variant = dataValue.value;
        assert(variant instanceof Variant);
        assert(ec.isValidBoolean(variant.value) && " value must be valid for dataType");
        enabled = variant.value;
        install_Timer();
    });
    install_Timer();
github node-opcua / node-opcua / packages / node-opcua-variant / src / variant_tools.js View on Github external
case DataType.UInt64:
            return ec.isValidUInt64(value);
        case DataType.UInt32:
            return ec.isValidUInt32(value);
        case DataType.Int32:
            return ec.isValidInt32(value);
        case DataType.UInt16:
            return ec.isValidUInt16(value);
        case DataType.Int16:
            return ec.isValidInt16(value);
        case DataType.Byte:
            return ec.isValidUInt8(value);
        case DataType.SByte:
            return ec.isValidInt8(value);
        case DataType.Boolean:
            return ec.isValidBoolean(value);
        case DataType.ByteString:
            return ec.isValidByteString(value);
        default:
            return true;
    }
}
github node-opcua / node-opcua / packages / node-opcua-variant / source / variant.ts View on Github external
case DataType.UInt64:
      return isValidUInt64(value);
    case DataType.UInt32:
      return isValidUInt32(value);
    case DataType.Int32:
      return isValidInt32(value);
    case DataType.UInt16:
      return isValidUInt16(value);
    case DataType.Int16:
      return isValidInt16(value);
    case DataType.Byte:
      return isValidUInt8(value);
    case DataType.SByte:
      return isValidInt8(value);
    case DataType.Boolean:
      return isValidBoolean(value);
    case DataType.ByteString:
      return isValidByteString(value);
    default:
      return true;
  }
}