interface IBasicSessionAsync2 {
    browse(nodeToBrowse: BrowseDescriptionLike): Promise<BrowseResult>;
    browse(nodesToBrowse: BrowseDescriptionLike[]): Promise<BrowseResult[]>;
    browse(nodeToBrowse: BrowseDescriptionLike, callback: ResponseCallback<BrowseResult>): void;
    browse(nodesToBrowse: BrowseDescriptionLike[], callback: ResponseCallback<BrowseResult[]>): void;
    browseNext(continuationPoint: Buffer, releaseContinuationPoints: boolean): Promise<BrowseResult>;
    browseNext(continuationPoints: Buffer[], releaseContinuationPoints: boolean): Promise<BrowseResult[]>;
    call(methodToCall: CallMethodRequestOptions): Promise<CallMethodResult>;
    call(methodsToCall: CallMethodRequestOptions[]): Promise<CallMethodResult[]>;
    call(methodToCall: CallMethodRequestOptions, callback: ((err: null | Error, result?: CallMethodResult) => void)): void;
    call(methodsToCall: CallMethodRequestOptions[], callback: ((err: null | Error, results?: CallMethodResult[]) => void)): void;
    read(nodeToRead: ReadValueIdOptions, maxAge?: number): Promise<DataValue>;
    read(nodesToRead: ReadValueIdOptions[], maxAge?: number): Promise<DataValue[]>;
    read(nodeToRead: ReadValueIdOptions, maxAge: number, callback: ResponseCallback<DataValue>): void;
    read(nodesToRead: ReadValueIdOptions[], maxAge: number, callback: ResponseCallback<DataValue[]>): void;
    read(nodeToRead: ReadValueIdOptions, callback: ResponseCallback<DataValue>): void;
    read(nodesToRead: ReadValueIdOptions[], callback: ResponseCallback<DataValue[]>): void;
    translateBrowsePath(browsePath: BrowsePath): Promise<BrowsePathResult>;
    translateBrowsePath(browsePaths: BrowsePath[]): Promise<BrowsePathResult[]>;
    translateBrowsePath(browsesPath: BrowsePath[], callback: ResponseCallback<BrowsePathResult[]>): void;
    translateBrowsePath(browsePath: BrowsePath, callback: ResponseCallback<BrowsePathResult>): void;
    write(nodeToWrite: WriteValueOptions): Promise<StatusCode>;
    write(nodesToWrite: WriteValueOptions[]): Promise<StatusCode[]>;
    write(nodeToWrite: WriteValueOptions, callback: ResponseCallback<StatusCode>): void;
    write(nodesToWrite: WriteValueOptions[], callback: ResponseCallback<StatusCode[]>): void;
}

Hierarchy (view full)

Methods

  • Parameters

    • continuationPoint: Buffer
    • releaseContinuationPoints: boolean

    Returns Promise<BrowseResult>

  • Parameters

    • continuationPoints: Buffer[]
    • releaseContinuationPoints: boolean

    Returns Promise<BrowseResult[]>

  • Parameters

    Returns Promise<CallMethodResult>

    const methodToCall = {
    objectId: "ns=2;i=12",
    methodId: "ns=2;i=13",
    inputArguments: [
    new Variant({...}),
    new Variant({...}),
    ]
    }
    session.call(methodToCall,function(err,callResult) {
    if (!err) {
    console.log(" statusCode = ",callResult.statusCode);
    console.log(" inputArgumentResults[0] = ",callResult.inputArgumentResults[0].toString());
    console.log(" inputArgumentResults[1] = ",callResult.inputArgumentResults[1].toString());
    console.log(" outputArgument[0] = ",callResult.outputArgument[0].toString()); // array of variant
    }
    });
    const methodsToCall = [ {
    objectId: "ns=2;i=12",
    methodId: "ns=2;i=13",
    inputArguments: [
    new Variant({...}),
    new Variant({...}),
    ]
    }];
    session.call(methodsToCall,function(err,callResults) {
    if (!err) {
    const callResult = callResults[0];
    console.log(" statusCode = ",rep.statusCode);
    console.log(" inputArgumentResults[0] = ",callResult.inputArgumentResults[0].toString());
    console.log(" inputArgumentResults[1] = ",callResult.inputArgumentResults[1].toString());
    console.log(" outputArgument[0] = ",callResult.outputArgument[0].toString()); // array of variant
    }
    });
  • Parameters

    Returns Promise<CallMethodResult[]>

  • Parameters

    Returns void

  • Parameters

    Returns void