Closed rmnbs closed 1 year ago
Solved it,
I Was doing
[BinaryEncodingId("nsu=urn:BeckhoffAutomation:Ua:PLC1;ns=4;s=<StructuredDataType>:StationConfig__DefaultBinary")]
or
[BinaryEncodingId("ns=4;s=<StructuredDataType>:StationConfig__DefaultBinary")]
instead of
[BinaryEncodingId("nsu=urn:BeckhoffAutomation:Ua:PLC1;s=<StructuredDataType>:StationConfig__DefaultBinary")]
Hi,
Like you I'm trying to create an MVVM application for a beckhoff automation project.
I'm trying to read my Status structure.
I am unable read my struct with the MonitoredItem / Structure pattern.
To find out why I created a small Terminal app trying to read just that structure.
What I get is that
BodyType
is of type ByteString. for GetValueOrDefault to function properly I would need an Encodable.I don't understand why i'm reading the data as a ByteString. For context I have tried multiple ways to configure the structure. directly on the structure itself
or on the variable
without success. I feel like it's a configuration issue somewhere on the client or server but I can't find it. If you have any idea about what is it I am doing wrong I'll gladly accept it. Thanks.