siemens / opc-ua-pubsub-dotnet

opc-ua-pubsub-dotnet is a library which implements OPC UA PubSub encoding and decoding in a simplified way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeepAlive not decoded

jan872 opened this issue · comments

Dear Projectteam,

it seemed to me that A8000 KeepAlive messages were not properly decoded.
DecodeMessage seemed to be missing a return statement. Adding the following line fixed the problem:

diff --git a/src/Binary/Decode/DecodeMessage.cs b/src/Binary/Decode/DecodeMessage.cs
index 3592442..eead15f 100644
--- a/src/Binary/Decode/DecodeMessage.cs
+++ b/src/Binary/Decode/DecodeMessage.cs
@@ -323,6 +323,7 @@ namespace opc.ua.pubsub.dotnet.binary.Decode
                         {
                             Logger.Debug( keepAliveFrame.ToString() );
                         }
+                        return keepAliveFrame;
                     }
                     return dataFrame;
             }

Regards
Jan

Fixed with 1.0.26