a/branches/FeatureBranches/Debuglogging/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NBIRTH/PublishNBIRTHEntry/svnobj b/branches/FeatureBranches/Debuglogging/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NBIRTH/PublishNBIRTHEntry/svnobj
1
Gx_l    "!0jüopð¼“'qŒáo)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
1
Gx_l"!0…jüor`ÂCqŒáo)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
2
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( gc_sparkplug.CMP_EDGE,Z                    CmpLog.LogClass.LOG_INFO,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 node0*)1†//Encode the node birth certificate, which should only take 1 scan!2J_SparkplugB.Encode( Enable := TRUE );3REPEAT4j    _SparkplugB( AllmetricsList := _AllMetricsList );5Œ    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );6R    EncodeDone  := _SparkplugB.Encoded();7>UNTIL EncodeDone OR EncodeError8END_REPEAT;9L_SparkplugB.Encode( Enable := FALSE );:&IF EncodeError THEN;\                    CmpLog.LogClass.LOG_ERROR,<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 );A.// Enable the publisherB0_MQTT.EnablePublisher();C,// Write a log messageDLWriteDeviceLog( gc_sparkplug.CMP_EDGE,ET                CmpLog.LogClass.LOG_DEBUG,Fb                'EoN Publish NBIRTH data to: %s',Gš                WSTRING_TO_STRING( _TopicProvider.wsNBIRTHpublisherTopic ) );H`PublishNBIRTHEntry := EncodeDone OR EncodeError;IInterfaceJL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}K${attribute 'hide'}L@METHOD PublishNBIRTHEntry : BOOLMVAR_OUTPUTN2    EncodeError   : BOOL;O4    Encode_eError : ERROR;PEND_VARQVAR_STATR0    NBIRTHError : ERROR;S4    NBIRTHTopic : WSTRING;T.    EncodeDone  : BOOL;ÐÐÐECÐÐ  
2
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( gc_sparkplug.CMP_EDGE,\                    CmpLog.LogClass.LOG_DEBUG,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 node0*)1†//Encode the node birth certificate, which should only take 1 scan!2J_SparkplugB.Encode( Enable := TRUE );3REPEAT4j    _SparkplugB( AllmetricsList := _AllMetricsList );5Œ    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );6R    EncodeDone  := _SparkplugB.Encoded();7>UNTIL EncodeDone OR EncodeError8END_REPEAT;9L_SparkplugB.Encode( Enable := FALSE );:&IF EncodeError THEN;\                    CmpLog.LogClass.LOG_ERROR,<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 );A.// Enable the publisherB0_MQTT.EnablePublisher();C,// Write a log messageDLWriteDeviceLog( gc_sparkplug.CMP_EDGE,ET                CmpLog.LogClass.LOG_DEBUG,Fb                'EoN Publish NBIRTH data to: %s',Gš                WSTRING_TO_STRING( _TopicProvider.wsNBIRTHpublisherTopic ) );H`PublishNBIRTHEntry := EncodeDone OR EncodeError;IInterfaceJL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}K${attribute 'hide'}L@METHOD PublishNBIRTHEntry : BOOLMVAR_OUTPUTN2    EncodeError   : BOOL;O4    Encode_eError : ERROR;PEND_VARQVAR_STATR0    NBIRTHError : ERROR;S4    NBIRTHTopic : WSTRING;T.    EncodeDone  : BOOL;ÐÐÐECÐÐ    
3
­£ÚÐ-
ÐÐ  
3
­£ÚÐ-
ÐÐ  
4
­¤ÚÐ-ÐÐ  
4
­¤ÚÐ-ÐÐ  
5
­¥ÚÐ-ÐÐ  
5
­¥ÚÐ-ÐÐ  
6
­¦ÚÐ-ÐÐ  
6
­¦ÚÐ-ÐÐ  
7
­§ÚÐ-ÐÐ  
7
­§ÚÐ-ÐÐ  
...
...
76
­ŸÚÐ-QÐÐ  
76
­ŸÚÐ-QÐÐ  
77
­ ÚÐ-RÐÐ  
77
­ ÚÐ-RÐÐ  
78
­¡ÚÐ-SÐÐ  
78
­¡ÚÐ-SÐÐ  
79
­¢ÚÐ-TÐÐ  
79
­¢ÚÐ-TÐÐ  
80
­WÚÐ-P
80
­WÚÐ-P