Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passing a String NodeId on the command line #54

Closed
Jochen1980 opened this issue Feb 11, 2015 · 1 comment
Closed

passing a String NodeId on the command line #54

Jochen1980 opened this issue Feb 11, 2015 · 1 comment
Labels

Comments

@Jochen1980
Copy link

Hi Etienne,

I wanted to test your command line interface mentioned in line 10 of simple_client.js. I was not able to set an accepted NodeId name, i.e. if I call

    node bin/simple_client.js --endpoint opc.tcp://ehome09:48010 --node "ns=3,s={360273AA-F2B9-4A7F-A5E3-37B7074E2529}.MechanicalDomain"

I will get an error:

throw new Error("String cannot be coerced to a nodeId : " + value)
                  ^
Error: String cannot be coerced to a nodeId : ns=3,s={360273AA-F2B9-4A7F-A5E3-37B7074E2529}.MechanicalDomain
    at TypeSchema.coerceNodeId ...

Can you verify that your example in your code is still working or are you able to add one more example call?

This is the corresponding file in node-opcua-project:
https://github.com/node-opcua/node-opcua/blob/master/bin/simple_client.js

@erossignon erossignon added the bug label Feb 11, 2015
@erossignon
Copy link
Member

you'll need a ; instead of a , to separate the ns= part and the s=part.

    node bin/simple_client.js --endpoint opc.tcp://ehome09:48010 --node "ns=3;s={360273AA-F2B9-4A7F-A5E3-37B7074E2529}.MechanicalDomain"

@erossignon erossignon added question and removed bug labels Feb 11, 2015
@erossignon erossignon changed the title SimpleClient command line interface passing a String NodeId on the command line Feb 11, 2015
erossignon added a commit that referenced this issue Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants