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

UNABLE TO connect to Siemens 828D #412

Open
IRISBFW opened this issue Apr 19, 2024 · 4 comments
Open

UNABLE TO connect to Siemens 828D #412

IRISBFW opened this issue Apr 19, 2024 · 4 comments

Comments

@IRISBFW
Copy link

IRISBFW commented Apr 19, 2024

Kindly some one help
I need to connect to siemens 828D Controller through OPCUA
It completely working with the python
Now i need to do the same with C++
I am able to connect to server without username and password
But when i try to connect to the server with username and password, it

I connect to server with
std::string endpoint = "opc.tcp://username:[email protected]:4840";

I am below error
receive ServiceFault from Server with StatusCode: The user identity token is not valid. (0x80200000)

@guojing555
Copy link

guojing555 commented Apr 19, 2024 via email

@IRISBFW
Copy link
Author

IRISBFW commented May 29, 2024

Can someone help on this?????

@IRISBFW
Copy link
Author

IRISBFW commented Aug 17, 2024

Still awaiting for the replay
Come one help please ???

@zhaodadong
Copy link

zhaodadong commented Nov 1, 2024

std::vectorOpcUa::UserTokenPolicy GetUserTokens() const
{
OpcUa::UserTokenPolicy policy;
policy.IssuedTokenType = "IssuedTokenType";
policy.IssuerEndpointUrl = "IssuerEndpointUrl";
policy.PolicyId = "PolicyId";
policy.SecurityPolicyUri = "SecurityPolicyUri";
policy.TokenType = UserTokenType::UserName;
return std::vectorOpcUa::UserTokenPolicy(1, policy);
}
Maybe need confirm some information supplied by the Ua server and add to endpoint?
Or ignore some token requirement on siemens 828D Controller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants