Diff of /branches/FeatureBranches/Debuglogging/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NDATA/PublishNDATAEntry/svnobj [r817] .. [r818]  Maximize  Restore

Switch to unified view

a/branches/FeatureBranches/Debuglogging/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NDATA/PublishNDATAEntry/svnobj b/branches/FeatureBranches/Debuglogging/SparkplugB/Function Blocks/FB_Edge/FB_Edge/NDATA/PublishNDATAEntry/svnobj
1
Gx_l×!0…jüoÖž3fÙî
1
Gx_lÙ!0jüoØ‘%öçÙî
2
 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
 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
3
longTagText
6PublishNDATAEntry := FALSE;*_SparkplugB.SetSeq();J_SparkplugB.Encode( Enable := TRUE );REPEATh    _SparkplugB( AllmetricsList := AllMetricsList );Œ    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );R    EncodeDone  := _SparkplugB.Encoded();>UNTIL EncodeDone OR EncodeErrorEND_REPEAT;L_SparkplugB.Encode( Enable := FALSE );&IF EncodeError THENT    WriteDeviceLog( gc_sparkplug.CMP_EDGE,\                    CmpLog.LogClass.LOG_ERROR,^                    'Encoding DDATA Error: %s',b                    TO_STRING( Encode_eError ) );END_IFT_SparkplugB.GetEncodedBlob( Blob := _Blob,h                            BlobSize := _BlobSize ); 0_MQTT.EnablePublisher();!LWriteDeviceLog( gc_sparkplug.CMP_EDGE,"R                CmpLog.LogClass.LOG_INFO,#b                'NDATA payload published in: %s',$˜                WSTRING_TO_STRING( _TopicProvider.wsNDATApublisherTopic ) );%^PublishNDATAEntry := EncodeDone OR EncodeError;&Interface'L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}((* )*    Node DATA (NDATA)*    +Ü    NDATA messages are used to update the values of any EoN node metrics that were originally published in the,à    NBIRTH message. Any time an input changes on the EoN node, a NDATA message should be generated and published-Þ    to the MQTT Server. If multiple metrics on the EoN node change, they can all be included in a single NDATA .    message. /š    The following is a representation of a simple NDATA message on the topic:0n        spBv1.0/Sparkplug"! B Devices/NDATA/Raspberry Pi1Æ    In the topic above the following information is known based on the Sparkplug"! topic definition:2€    "    The  Group ID  of this EoN node is: Sparkplug"! B Devices3v    "    The  EoN node ID  of this EoN node is: Raspberry Pi4h    "    *This is an NBIRTH message from the EoN node5*)6${attribute 'hide'}7>METHOD PublishNDATAEntry : BOOL8VAR_IN_OUT94    AllMetricsList : LIST;:END_VAR;VAR_OUTPUT<D    EncodeError   : BOOL := FALSE;=4    Encode_eError : ERROR;>VAR_STAT?4    NDATATopic  : WSTRING;@@    EncodeDone  : BOOL := FALSE;A@    PublishDone : BOOL := FALSE;ÐÐÐEÐÐ    
3
longTagText
6PublishNDATAEntry := FALSE;*_SparkplugB.SetSeq();J_SparkplugB.Encode( Enable := TRUE );REPEATh    _SparkplugB( AllmetricsList := AllMetricsList );Œ    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );R    EncodeDone  := _SparkplugB.Encoded();>UNTIL EncodeDone OR EncodeErrorEND_REPEAT;L_SparkplugB.Encode( Enable := FALSE );&IF EncodeError THENT    WriteDeviceLog( gc_sparkplug.CMP_EDGE,\                    CmpLog.LogClass.LOG_ERROR,^                    'Encoding DDATA Error: %s',b                    TO_STRING( Encode_eError ) );END_IFT_SparkplugB.GetEncodedBlob( Blob := _Blob,h                            BlobSize := _BlobSize ); 0_MQTT.EnablePublisher();!LWriteDeviceLog( gc_sparkplug.CMP_EDGE,"T                CmpLog.LogClass.LOG_DEBUG,#b                'NDATA payload published in: %s',$˜                WSTRING_TO_STRING( _TopicProvider.wsNDATApublisherTopic ) );%^PublishNDATAEntry := EncodeDone OR EncodeError;&Interface'L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}((* )*    Node DATA (NDATA)*    +Ü    NDATA messages are used to update the values of any EoN node metrics that were originally published in the,à    NBIRTH message. Any time an input changes on the EoN node, a NDATA message should be generated and published-Þ    to the MQTT Server. If multiple metrics on the EoN node change, they can all be included in a single NDATA .    message. /š    The following is a representation of a simple NDATA message on the topic:0n        spBv1.0/Sparkplug"! B Devices/NDATA/Raspberry Pi1Æ    In the topic above the following information is known based on the Sparkplug"! topic definition:2€    "    The  Group ID  of this EoN node is: Sparkplug"! B Devices3v    "    The  EoN node ID  of this EoN node is: Raspberry Pi4h    "    *This is an NBIRTH message from the EoN node5*)6${attribute 'hide'}7>METHOD PublishNDATAEntry : BOOL8VAR_IN_OUT94    AllMetricsList : LIST;:END_VAR;VAR_OUTPUT<D    EncodeError   : BOOL := FALSE;=4    Encode_eError : ERROR;>VAR_STAT?4    NDATATopic  : WSTRING;@@    EncodeDone  : BOOL := FALSE;A@    PublishDone : BOOL := FALSE;ÐÐÐEÐÐ  
4
­ÍÚÐ-
ÐÐ  
4
­ÍÚÐ-
ÐÐ  
5
­ÎÚÐ-ÐÐ  
5
­ÎÚÐ-ÐÐ  
6
­ÏÚÐ-ÐÐ  
6
­ÏÚÐ-ÐÐ  
7
­ÐÚÐ-ÐÐ  
7
­ÐÚÐ-ÐÐ  
8
­ÑÚÐ-ÐÐ  
8
­ÑÚÐ-ÐÐ  
...
...
60
­ÉÚÐ->ÐÐ  
60
­ÉÚÐ->ÐÐ  
61
­ÊÚÐ-?ÐÐ  
61
­ÊÚÐ-?ÐÐ  
62
­ËÚÐ-@ÐÐ  
62
­ËÚÐ-@ÐÐ  
63
­ÌÚÐ-AÐÐ  
63
­ÌÚÐ-AÐÐ  
64
­ÚÐ-:
64
­ÚÐ-: