Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Hierarchy

Index

Methods

call

  • method

    call

    example

    :

    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
       }
    });
    
    method

    call

    example

    :

    const methodsToCall = [ {
        objectId: "ns=2;i=12",
        methodId: "ns=2;i=13",
        inputArguments: [
            new Variant({...}),
            new Variant({...}),
        ]
    }];
    session.call(methodsToCall,function(err,callResutls) {
       if (!err) {
            const callResult = callResutls[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 void

  • Parameters

    Returns void

  • Parameters

    Returns Promise<CallMethodResult>

  • Parameters

    Returns Promise<CallMethodResult[]>

getArgumentDefinition

Generated using TypeDoc