--- a/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/DBIRTH/GetDeviceBirthCertificate/svnobj
+++ b/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_SparkplugBSimple/FB_SparkplugBSimple/DBIRTH/GetDeviceBirthCertificate/svnobj
@@ -1,5 +1,5 @@
-Gx_l!0…jüoBb™±ZýpíSystem.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 );¶InitEncoderErr := _Encoder.InitializePayloadBeforeAddingMetrics( TimeStamp := _Timestamp );p_Encoder.SetSeq( seq := pEoN^._SparkplugB.GetSeqNum() );NIF InitEncoderErr = ERROR.NO_ERROR THEN^    IF AddSimpleMetricErr = ERROR.NO_ERROR THEN‚        // Add all metrics which this device will EVER report on;Ž        AddAllMetricsListErr := AddAllMetrics( TimeStamp := _Timestamp,”                                               SendList := AllMetricsList,¤                                               AllMetricsList := AllMetricsList );j        IF AddAllMetricsListErr = ERROR.NO_ERROR THENp            GetDeviceBirthCertificate := ERROR.NO_ERROR;        ELSE|            GetDeviceBirthCertificate := AddAllMetricsListErr;        END_IF    ELSEp        GetDeviceBirthCertificate := AddSimpleMetricErr;    END_IFELSE `    GetDeviceBirthCertificate := InitEncoderErr;!END_IF"Interface#L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}$(*%	DBIRTH&	'|	The DBIRTH message requires the following payload components.(Î	"  The DBIRTH must include the a seq number in the payload and it must have a value of one greater than)Â	the previous MQTT message from the EoN node contained unless the previous MQTT message contained*n	a value of 255. In this case the seq number must be 0.+È	"  The DBIRTH must include a timestamp denoting the DateTime the message was sent from the EoN node.,	"  The DBIRTH must include every metric the device will ever report on. -R	At a minimum these metrics must include:.&		o The metric name/.		o The metric datatype0*		o The current value1OPTIONAL:	2Ì	The DBIRTH message can also include optional  Device Control  payload components. These are used by a3Ô	backend application to control aspects of a device. The following are examples of Device Control metrics.4N	"  Metric name:  Device Control/Reboot 5l		o Used by backend application(s) to reboot a device.6P	"  Metric name:  Device Control/Rebirth 7’		o Used by backend application(s) to request a new DBIRTH from a device.8T	"  Metric name:  Device Control/Scan rate 9ˆ		o Used by backed application(s) to modify a poll rate on a device.:Ü	The DBIRTH message can also include optional  Properties  of a device. The following are examples of Property;	metrics.<T	"  Metric name:  Properties/Hardware Make =x		o Used to transmit the hardware manufacturer of the device>V	"  Metric name:  Properties/Hardware Model ?j		o Used to transmit the hardware model of the device@>	" 	Metric name:  Properties/FW Ar		o Used to transmit the firmware version of the device		B*)CPMETHOD GetDeviceBirthCertificate : ERRORDVAR_INPUTE<    pEoN : POINTER TO FB_Edge;FEND_VARGVAR_IN_OUTH4    AllMetricsList : List;IVARJZ    DBirth               : FB_SparkplugInt64;KB    CurSeqNum            : ULINT;LB    InitEncoderErr       : ERROR;MB    AddSimpleMetricErr   : ERROR;NB    AddAllMetricsListErr : ERROR;ÐÐÐEÐÐ	
+Gx_l§!0…jüoæ}5™Û ¹±System.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 );¶InitEncoderErr := _Encoder.InitializePayloadBeforeAddingMetrics( TimeStamp := _Timestamp );p_Encoder.SetSeq( seq := pEoN^._SparkplugB.GetSeqNum() );NIF InitEncoderErr = ERROR.NO_ERROR THEN^    IF AddSimpleMetricErr = ERROR.NO_ERROR THEN‚        // Add all metrics which this device will EVER report on;Ž        AddAllMetricsListErr := AddAllMetrics( TimeStamp := _Timestamp,”                                               SendList := AllMetricsList,¤                                               AllMetricsList := AllMetricsList );j        IF AddAllMetricsListErr = ERROR.NO_ERROR THENp            GetDeviceBirthCertificate := ERROR.NO_ERROR;        ELSE|            GetDeviceBirthCertificate := AddAllMetricsListErr;        END_IF    ELSEp        GetDeviceBirthCertificate := AddSimpleMetricErr;    END_IFELSE `    GetDeviceBirthCertificate := InitEncoderErr;!END_IF"Interface#L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}$(*%	DBIRTH&	'|	The DBIRTH message requires the following payload components.(Î	"  The DBIRTH must include the a seq number in the payload and it must have a value of one greater than)Â	the previous MQTT message from the EoN node contained unless the previous MQTT message contained*n	a value of 255. In this case the seq number must be 0.+È	"  The DBIRTH must include a timestamp denoting the DateTime the message was sent from the EoN node.,	"  The DBIRTH must include every metric the device will ever report on. -R	At a minimum these metrics must include:.&		o The metric name/.		o The metric datatype0*		o The current value1OPTIONAL:	2Ì	The DBIRTH message can also include optional  Device Control  payload components. These are used by a3Ô	backend application to control aspects of a device. The following are examples of Device Control metrics.4N	"  Metric name:  Device Control/Reboot 5l		o Used by backend application(s) to reboot a device.6P	"  Metric name:  Device Control/Rebirth 7’		o Used by backend application(s) to request a new DBIRTH from a device.8T	"  Metric name:  Device Control/Scan rate 9ˆ		o Used by backed application(s) to modify a poll rate on a device.:Ü	The DBIRTH message can also include optional  Properties  of a device. The following are examples of Property;	metrics.<T	"  Metric name:  Properties/Hardware Make =x		o Used to transmit the hardware manufacturer of the device>V	"  Metric name:  Properties/Hardware Model ?j		o Used to transmit the hardware model of the device@>	" 	Metric name:  Properties/FW Ar		o Used to transmit the firmware version of the device		B*)CPMETHOD GetDeviceBirthCertificate : ERRORDVAR_INPUTE<    pEoN : POINTER TO FB_Edge;FEND_VARGVAR_IN_OUTH4    AllMetricsList : List;IVARJB    CurSeqNum            : ULINT;KB    InitEncoderErr       : ERROR;LB    AddSimpleMetricErr   : ERROR;MB    AddAllMetricsListErr : ERROR;ÐÐÐEÐÐ	
 ­CÚÐ-
ÐÐ	
 ­DÚÐ-ÐÐ	
 ­FÚÐ-ÐÐ	
@@ -21,7 +21,7 @@
 ­VÚÐ-ÐÐ	
 ­WÚÐ-ÐÐ	
 ­XÚÐ- ÐÐ	
-­}ÚÐ-!Ð"#ÐE0ÐÐ	
+­}ÚÐ-!Ð"#ÐE/ÐÐ	
 ­ÚÐ-$ÐÐ	
 ­ÚÐ-%ÐÐ	
 ­ÚÐ-&ÐÐ	
@@ -64,9 +64,8 @@
 ­;ÚÐ-HÐÐ	
 ­<ÚÐ-FÐÐ	
 ­=ÚÐ-IÐÐ	
-­>ÚÐ-JÐÐ	
-­?ÚÐ-KÐÐ	
-­@ÚÐ-LÐÐ	
-­AÚÐ-MÐÐ	
-­BÚÐ-NÐÐ	
+­?ÚÐ-JÐÐ	
+­@ÚÐ-KÐÐ	
+­AÚÐ-LÐÐ	
+­BÚÐ-MÐÐ	
 ­–ÚÐ-F
\ No newline at end of file