--- a/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/NDEATH/GetEoNNodeDeathCertificate/svnobj
+++ b/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/NDEATH/GetEoNNodeDeathCertificate/svnobj
@@ -1,5 +1,5 @@
-Gx_lŒ!0…jüo#Y¶ñAŸ?eSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
-longTagText
xSysTimeRtc.SysTimeRtcHighResGet( pTimestamp := _Timestamp );œ// Since the NDeath metrics contains a seqnum, we skip inserting a seqnum here¶InitEncoderErr := _Encoder.InitializePayloadBeforeAddingMetrics( timestamp := _Timestamp );¢(*  NDEATH Sequence Metric "bdSeq", None, MetricDataType.Int64, getBdSeqNum()) *)NIF InitEncoderErr = ERROR.NO_ERROR THEND    NDEATH.Name        := "bdSeq";P    NDEATH.Value       := getBdSeqNum();†    AddSimpleMetricErr := AddMetricSimple( TimeStamp := _Timestamp,„                                           SimpleObject := NDEATH,œ                                           AllMetricsList := AllMetricsList );j    GetEoNNodeDeathCertificate := AddSimpleMetricErr;n    IF GetEoNNodeDeathCertificate = ERROR.NO_ERROR THEN¤        WriteDeviceLog( msgCtrlMask := UDINT_TO_DWORD( CmpLog.LogClass.LOG_INFO ),¨                        msgFmtStr := 'SparkplugBSimple GetNDEATHCertificate Succes',N                        strArg := '' );    END_IFELSEb    GetEoNNodeDeathCertificate := InitEncoderErr; END_IF!Interface"L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}#(*  $Z    NDEATH   Death certificate for EoN nodes.%    &Ü    The NDEATH message contains a very simple payload that only includes a single metric, the bdSeq number, so'â    that the NDEATH event can be associated with the NBIRTH. Since this is typically published by the MQTT Server(è    on behalf of the EoN node, information about the current state of the EoN node and its devices is not and cannot)    be known.*À    - Always request this before requesting the Node Birth Payload, pass this sequence to NBIRTH+¼    - After Calling, the encoder must be used immedeatly to obtain the blob payload for NDEATH,*)-RMETHOD GetEoNNodeDeathCertificate : ERROR.VAR_IN_OUT/N    NDEATH         : FB_SparkplugUInt640ü    ;                      // Un-encoded NDEATH Metric for external storage purpose, contains BSeqNumber for usage with NBIRTH1È    AllMetricsList : LIST; // Contains a list of all metrics which will ever report on in this node 2END_VAR3VAR4>    InitEncoderErr     : ERROR;5>    AddSimpleMetricErr : ERROR;ÐÐÐEÐÐ	
+Gx_lþ!0…jüo}~…ê?Yë±1System.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
+longTagText
xSysTimeRtc.SysTimeRtcHighResGet( pTimestamp := _Timestamp );œ// Since the NDeath metrics contains a seqnum, we skip inserting a seqnum here¶InitEncoderErr := _Encoder.InitializePayloadBeforeAddingMetrics( timestamp := _Timestamp );¢(*  NDEATH Sequence Metric "bdSeq", None, MetricDataType.Int64, getBdSeqNum()) *)NIF InitEncoderErr = ERROR.NO_ERROR THEND    NDEATH.Name        := "bdSeq";Z	NDEATH.DataType    := MetricDataType.UInt64;R    NDEATH.Uint64       := getBdSeqNum();†    AddSimpleMetricErr := AddMetricSimple( TimeStamp := _Timestamp,„                                           SimpleObject := NDEATH,œ                                           AllMetricsList := AllMetricsList );j    GetEoNNodeDeathCertificate := AddSimpleMetricErr;n    IF GetEoNNodeDeathCertificate = ERROR.NO_ERROR THEN¤        WriteDeviceLog( msgCtrlMask := UDINT_TO_DWORD( CmpLog.LogClass.LOG_INFO ),¨                        msgFmtStr := 'SparkplugBSimple GetNDEATHCertificate Succes',N                        strArg := '' );    END_IFELSE b    GetEoNNodeDeathCertificate := InitEncoderErr;!END_IF"Interface#L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}$(*  %Z    NDEATH   Death certificate for EoN nodes.&    'Ü    The NDEATH message contains a very simple payload that only includes a single metric, the bdSeq number, so(â    that the NDEATH event can be associated with the NBIRTH. Since this is typically published by the MQTT Server)è    on behalf of the EoN node, information about the current state of the EoN node and its devices is not and cannot*    be known.+À    - Always request this before requesting the Node Birth Payload, pass this sequence to NBIRTH,¼    - After Calling, the encoder must be used immedeatly to obtain the blob payload for NDEATH-*).RMETHOD GetEoNNodeDeathCertificate : ERROR/VAR_IN_OUT0J    NDEATH         : FB_RemoteMetric;1ü    ;                      // Un-encoded NDEATH Metric for external storage purpose, contains BSeqNumber for usage with NBIRTH2È    AllMetricsList : LIST; // Contains a list of all metrics which will ever report on in this node 3END_VAR4VAR5>    InitEncoderErr     : ERROR;6>    AddSimpleMetricErr : ERROR;ÐÐÐEÐÐ	
 ­ÆÚÐ-
ÐÐ	
 ­ÇÚÐ-ÐÐ	
 ­ÈÚÐ-ÐÐ	
@@ -7,40 +7,41 @@
 ­ËÚÐ-ÐÐ	
 ­ÌÚÐ-ÐÐ	
 ­ÍÚÐ-ÐÐ	
-­ÎÚÐ-ÐÐ	
-­ÏÚÐ-ÐÐ	
-­ÐÚÐ-ÐÐ	
-­ÑÚÐ-ÐÐ	
+­ÛÚÐ-ÐÐ	
+­ÎÚÐ-ÐÐ	
+­ÏÚÐ-ÐÐ	
+­ÐÚÐ-ÐÐ	
+­ÑÚÐ-ÐÐ	
 ­ÒÚÐ-ÐÐ	
-­ÓÚÐ-ÐÐ	
-­ÔÚÐ-ÐÐ	
-­ÕÚÐ-ÐÐ	
-­ÖÚÐ-ÐÐ	
-­×ÚÐ-ÐÐ	
-­ØÚÐ-ÐÐ	
-­ÙÚÐ-ÐÐ	
-­ÚÚÐ-ÐÐ	
-­óÚÐ- Ð!"ÐEÐÐ	
-­°ÚÐ-#ÐÐ	
-­±ÚÐ-$ÐÐ	
-­²ÚÐ-%ÐÐ	
-­³ÚÐ-&ÐÐ	
-­´ÚÐ-'ÐÐ	
-­µÚÐ-(ÐÐ	
-­¶ÚÐ-)ÐÐ	
-­·ÚÐ-%ÐÐ	
-­¸ÚÐ-*ÐÐ	
-­¹ÚÐ-+ÐÐ	
-­ºÚÐ-%ÐÐ	
-­»ÚÐ-%ÐÐ	
-­¼ÚÐ-,ÐÐ	
-­½ÚÐ--ÐÐ	
-­¾ÚÐ-.ÐÐ	
-­¿ÚÐ-/ÐÐ	
-­ÀÚÐ-0ÐÐ	
-­ÁÚÐ-1ÐÐ	
-­ÂÚÐ-2ÐÐ	
-­ÃÚÐ-3ÐÐ	
-­ÄÚÐ-4ÐÐ	
-­ÅÚÐ-5ÐÐ	
-­5ÚÐ-2
\ No newline at end of file
+­ÓÚÐ-ÐÐ	
+­ÔÚÐ-ÐÐ	
+­ÕÚÐ-ÐÐ	
+­ÖÚÐ-ÐÐ	
+­×ÚÐ-ÐÐ	
+­ØÚÐ-ÐÐ	
+­ÙÚÐ-ÐÐ	
+­ÚÚÐ- ÐÐ	
+­óÚÐ-!Ð"#ÐEÐÐ	
+­°ÚÐ-$ÐÐ	
+­±ÚÐ-%ÐÐ	
+­²ÚÐ-&ÐÐ	
+­³ÚÐ-'ÐÐ	
+­´ÚÐ-(ÐÐ	
+­µÚÐ-)ÐÐ	
+­¶ÚÐ-*ÐÐ	
+­·ÚÐ-&ÐÐ	
+­¸ÚÐ-+ÐÐ	
+­¹ÚÐ-,ÐÐ	
+­ºÚÐ-&ÐÐ	
+­»ÚÐ-&ÐÐ	
+­¼ÚÐ--ÐÐ	
+­½ÚÐ-.ÐÐ	
+­¾ÚÐ-/ÐÐ	
+­¿ÚÐ-0ÐÐ	
+­ÀÚÐ-1ÐÐ	
+­ÁÚÐ-2ÐÐ	
+­ÂÚÐ-3ÐÐ	
+­ÃÚÐ-4ÐÐ	
+­ÄÚÐ-5ÐÐ	
+­ÅÚÐ-6ÐÐ	
+­5ÚÐ-3
\ No newline at end of file