Git Product home page Git Product logo

Comments (11)

msalafia avatar msalafia commented on May 26, 2024 1

All these issues are due to bad NodeId strings. Unfortunately this time the issue is due to a BadNodeIdUnknown and could be due to the sdk call session.ReadNode(nodeToRead) or even your server sdk that throws an exception because do not works with this cumbersome nodeId. This is not due to a OPC UA WebPlatform bug so i cannot help you.
I am closing the issue.

from opcuawebplatformunict.

msalafia avatar msalafia commented on May 26, 2024

The OPC UA WebPlatform uses a regular expression for NodeId validation expressed in the form - where is the namespace index and is the identifier. The latter can be a number, a string or a guid. The regular expression used is "^(\d+)-(?:(\d+)|(\S+))$" as you can see in this code.
Try to check the validity of this regular expression against your nodeId using online tool for regular expression liike this.
If you don't provide me some examples of strings you are submitting to the platform, i cannot help you.

from opcuawebplatformunict.

tronghuybku avatar tronghuybku commented on May 26, 2024

Hello! My NodeId ns=2;s=OPC.SimaticNET.TCS

from opcuawebplatformunict.

msalafia avatar msalafia commented on May 26, 2024

If you provide this NodeId in the following format 2-OPC.SimaticNET.TCS it should work.
Look the matching:
image

from opcuawebplatformunict.

tronghuybku avatar tronghuybku commented on May 26, 2024

i don't understand issue ValueToWriteTypeException: Wrong Type Error: String is not formatted as expected (number-yyy where yyy can be string or number or guid)
WebPlatform.Repository.PlatformUtils.ParsePlatformNodeIdString(string str) in PlatformUtils.cs
But i connect another server is OK and find node id ok

from opcuawebplatformunict.

tronghuybku avatar tronghuybku commented on May 26, 2024

can i send u Server Url and check it or can you teamview help me because i must fix it

from opcuawebplatformunict.

msalafia avatar msalafia commented on May 26, 2024

Write here the url and i will ckeck but not soon. I am busy at the moment.

from opcuawebplatformunict.

tronghuybku avatar tronghuybku commented on May 26, 2024

thank you. serverurl: opc.tcp://vietscada.com:4852
you must fix in file Config.xml to connect my server
AutoAcceptUntrustedCertificates: true
RejectSHA1SignedCertificates: false
MinimumCertificateKeySize: 1024

from opcuawebplatformunict.

tronghuybku avatar tronghuybku commented on May 26, 2024

Hope you can solve issue. this is my Graduate thesis so i must fix it. Thank you very much

from opcuawebplatformunict.

msalafia avatar msalafia commented on May 26, 2024

This issue is due to your Node with NodeId "i=2;s=Server Status" because of the space in "Server Status". Space in Node Ids are not so common and quite error prone. If you cannot change the server NodeId i suggest you to change the regular expression with ^(\d+)-(?:(\d+)|([\S ]+))$. It will work.

from opcuawebplatformunict.

tronghuybku avatar tronghuybku commented on May 26, 2024

It work with Folder. Thank you very much. But when i find node ID variable issue "Wrong ID: There is no Resource with ID 2-TCS:[SeniorStudentHD.Station 1.101]DP,Pump_3_Runtime" . Hope you hope me. nodeID is : "2-TCS:[SeniorStudentHD.Station 1.101]DP,Pump_3_Runtime"

from opcuawebplatformunict.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.