--- a/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NBIRTH/PublishNBIRTHEntry/svnobj
+++ b/branches/FeatureBranches/refactorpayload/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NBIRTH/PublishNBIRTHEntry/svnobj
@@ -1,5 +1,5 @@
-Gx_lï !0…jüožnjÃë)ŽRø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
8PublishNBIRTHEntry := FALSE;*NBIRTHError        :=Ì    _SparkplugB.GetEoNNodeBirthCertificate( LWT_BDSeq := _NDEATH.Value, // should contain NDEATH.Value|                                            NBIRTH := _NBIRTH,                                             AllMetricsList := _AllMetricsList );JIF NBIRTHError <> ERROR.NO_ERROR THENt    WriteDeviceLog( TO_DWORD( CmpLog.LogClass.LOG_ERROR ),f                    'EoN Publish NBIRTH Error: %s',^                    TO_STRING( NBIRTHError ) );END_IF(*Þ    The NBIRTH message can also include optional  Node Control  payload components. These are used by a backendÎ    application to control aspects of the EoN node. The following are examples of Node Control metrics.T    "    Metric name:  Node Control/Reboot ~        o Used by backend application(s) to reboot an EoN node.V    "    Metric name:  Node Control/Rebirth À        o Used by backend application(s) to request a new NBIRTH and DBIRTH(s) from an EoN node.^    "    Metric name:  Node Control/Next Server  Ö        o Used by backend application(s) to request an EoN node to walk to the next MQTT Server in its list!T        in multi-MQTT Server environments."Z    "    Metric name:  Node Control/Scan rate #š        o Used by backed application(s) to modify a poll rate on an EoN node.$    %Ö    The NBIRTH message can also include optional  Properties  of an EoN node. The following are examples of&*    Property metrics.'^    "    Metric name:  Properties/Hardware Make (ˆ        o Used to transmit the hardware manufacturer of the EoN node)`    "    Metric name:  Properties/Hardware Model *z        o Used to transmit the hardware model of the EoN node+J    "     Metric name:  Properties/OS ,~        o Used to transmit the operating system of the EoN node-X    "    Metric name:  Properties/OS Version .r        o Used to transmit the OS version of the EoN node/*)0†//Encode the node birth certificate, which should only take 1 scan!1J_SparkplugB.Encode( Enable := TRUE );2REPEAT3j    _SparkplugB( AllmetricsList := _AllMetricsList );4Œ    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );5R    EncodeDone  := _SparkplugB.Encoded();6>UNTIL EncodeDone OR EncodeError7END_REPEAT;8L_SparkplugB.Encode( Enable := FALSE );9&IF EncodeError THEN:r                    'EoN Encoding NBIRTH data Error: %s',;b                    TO_STRING( Encode_eError ) );<F// Now retrieve the serialised blob=T_SparkplugB.GetEncodedBlob( Blob := _Blob,>h                            BlobSize := _BlobSize );?.// Enable the publisher@0_MQTT.EnablePublisher();A,// Write a log messageBjWriteDeviceLog( TO_DWORD( CmpLog.LogClass.LOG_INFO ),Cb                'EoN Publish NBIRTH data to: %s',Dš                WSTRING_TO_STRING( _TopicProvider.wsNBIRTHpublisherTopic ) );E`PublishNBIRTHEntry := EncodeDone OR EncodeError;FInterfaceGL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}H${attribute 'hide'}I@METHOD PublishNBIRTHEntry : BOOLJVAR_OUTPUTK2    EncodeError   : BOOL;L4    Encode_eError : ERROR;MEND_VARNVAR_STATO0    NBIRTHError : ERROR;P4    NBIRTHTopic : WSTRING;Q.    EncodeDone  : BOOL;ÐÐÐE@ÐÐ	
+Gx_lÕ !0…jüo„wÃ;ø)ŽRø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
8PublishNBIRTHEntry := FALSE;*NBIRTHError        :=Î    _SparkplugB.GetEoNNodeBirthCertificate( LWT_BDSeq := _NDEATH.Uint64, // should contain NDEATH.Value|                                            NBIRTH := _NBIRTH,’                                            AllMetricsList := _Metrics );JIF NBIRTHError <> ERROR.NO_ERROR THENt    WriteDeviceLog( TO_DWORD( CmpLog.LogClass.LOG_ERROR ),f                    'EoN Publish NBIRTH Error: %s',^                    TO_STRING( NBIRTHError ) );END_IF(*Þ    The NBIRTH message can also include optional  Node Control  payload components. These are used by a backendÎ    application to control aspects of the EoN node. The following are examples of Node Control metrics.T    "    Metric name:  Node Control/Reboot ~        o Used by backend application(s) to reboot an EoN node.V    "    Metric name:  Node Control/Rebirth À        o Used by backend application(s) to request a new NBIRTH and DBIRTH(s) from an EoN node.^    "    Metric name:  Node Control/Next Server  Ö        o Used by backend application(s) to request an EoN node to walk to the next MQTT Server in its list!T        in multi-MQTT Server environments."Z    "    Metric name:  Node Control/Scan rate #š        o Used by backed application(s) to modify a poll rate on an EoN node.$    %Ö    The NBIRTH message can also include optional  Properties  of an EoN node. The following are examples of&*    Property metrics.'^    "    Metric name:  Properties/Hardware Make (ˆ        o Used to transmit the hardware manufacturer of the EoN node)`    "    Metric name:  Properties/Hardware Model *z        o Used to transmit the hardware model of the EoN node+J    "     Metric name:  Properties/OS ,~        o Used to transmit the operating system of the EoN node-X    "    Metric name:  Properties/OS Version .r        o Used to transmit the OS version of the EoN node/*)0†//Encode the node birth certificate, which should only take 1 scan!1J_SparkplugB.Encode( Enable := TRUE );2REPEAT3\    _SparkplugB( AllmetricsList := _Metrics );4Œ    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );5R    EncodeDone  := _SparkplugB.Encoded();6>UNTIL EncodeDone OR EncodeError7END_REPEAT;8L_SparkplugB.Encode( Enable := FALSE );9&IF EncodeError THEN:r                    'EoN Encoding NBIRTH data Error: %s',;b                    TO_STRING( Encode_eError ) );<F// Now retrieve the serialised blob=T_SparkplugB.GetEncodedBlob( Blob := _Blob,>h                            BlobSize := _BlobSize );?.// Enable the publisher@0_MQTT.EnablePublisher();A,// Write a log messageBjWriteDeviceLog( TO_DWORD( CmpLog.LogClass.LOG_INFO ),Cb                'EoN Publish NBIRTH data to: %s',Dš                WSTRING_TO_STRING( _TopicProvider.wsNBIRTHpublisherTopic ) );E`PublishNBIRTHEntry := EncodeDone OR EncodeError;FInterfaceGL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}H${attribute 'hide'}I@METHOD PublishNBIRTHEntry : BOOLJVAR_OUTPUTK2    EncodeError   : BOOL;L4    Encode_eError : ERROR;MEND_VARNVAR_STATO0    NBIRTHError : ERROR;P4    NBIRTHTopic : WSTRING;Q.    EncodeDone  : BOOL;ÐÐÐE@ÐÐ	
 ­£ÚÐ-
ÐÐ	
 ­¤ÚÐ-ÐÐ	
 ­¥ÚÐ-ÐÐ