--- a
+++ b/branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Functions/AddChangesToPayload2/svnobj
@@ -0,0 +1,4 @@
+Gx_lS!0…jüoŌ*9¸Ć&˛[System.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument	L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
+TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagTextNAddChangesToPayload2 := ERROR.NO_ERROR;.ErrorDetected := FALSE;vSysTimeRtc.SysTimeRtcHighResGet( pTimestamp := Timestamp );PIF ChangeDetected( AllMetricsList ) THEN    <    //Loop through the metricsz    AllMetricsList.ItterateRestart( HasNext => HasNext );    (    WHILE HasNext DO|        AllMetricsList.ItterateNext( itfElement => itfElement,t                                     HasNext => HasNext );n        IF __QUERYINTERFACE( itfElement, _Metric ) THEN\            // Loop is called for every metricD            IF _Metric.Notify THEN´                AddMetricError := pSparkplugB^._Encoder.AddMetric( TimeStamp := Timestamp,À                                                                   SparkPlugObject := _Metric ); p                IF AddMetricError <> ERROR.NO_ERROR THEN!v                    AddChangesToPayload2 := AddMetricError;"T                    ErrorDetected := TRUE;#,                END_IF$X                _Metric.AcknowledgeNotify();%$            END_IF&        END_IF'    END_WHILE  (END_IF)Interface*L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}+(*,¨    Parses every Array Element and adds it to the Encoder metrics List if the Element notifies a change (the value has been changed during runtime).-’    When the Element has been processed, the notifier gets acknowledged. .*)/${attribute 'hide'}0JFUNCTION AddChangesToPayload2 : ERROR1VAR_IN_OUT2b    AllMetricsList : LIST; // List of all metrics3END_VAR 4VAR_INPUT5b    pSparkplugB : POINTER TO FB_SparkplugBSimple;6END_VAR7VAR_OUTPUT8f    ErrorDetected   : BOOL;  // Some Error Occured 9VAR:4    Index          : DINT;;@    TimeStamp      : T_DateTime;<6    AddMetricError : ERROR;=	>(	HasNext     : BOOL;?.    FoundMetric : BOOL;@6    itfElement  : IElement;A4    _Metric     : IMetric;B"UniqueIdGeneratorC2014DPOULevelEL{8e575c5b-1d37-49c6-941b-5c0ec7874787}FStandardG ChildObjectGuidsH8System.Collections.ArrayListI,AddAttributeSubsequentJboolÐÐ-ÐÐ	E
+ÐÐ
­hÚÐ-ÐÐ
­iÚÐ-ÐÐ
­lÚÐ-ÐÐ
­ƒÚÐ-ÐÐ
­ÂÚÐ-ÐÐ
­ÛÚÐ-ÐÐ
­ØÚÐ-ÐÐ
­×ÚÐ-ÐÐ
­ÅÚÐ-ÐÐ
­ÆÚÐ-ÐÐ
­ÇÚÐ-ÐÐ
­ÈÚÐ-ÐÐ
­ÉÚÐ-ÐÐ
­ÊÚÐ-ÐÐ
­ËÚÐ-ÐÐ
­ÌÚÐ-ÐÐ
­ÍÚÐ-ÐÐ
­ÎÚÐ- ÐÐ
­ÏÚÐ-!ÐÐ
­ÐÚÐ-"ÐÐ
­ÑÚÐ-#ÐÐ
­ÔÚÐ-$ÐÐ
­ÕÚÐ-%ÐÐ
­ÖÚÐ-&ÐÐ
­ÃÚÐ-'ÐÐ
­ÄÚÐ-(ÐÐ
­¼ÚÐ-Ð)*Ð	E
+ÐÐ
­¢ÚÐ-+ÐÐ
­£ÚÐ-,ÐÐ
­¤ÚÐ--ÐÐ
­¥ÚÐ-.ÐÐ
­¦ÚÐ-/ÐÐ
­§ÚÐ-0ÐÐ
­¨ÚÐ-1ÐÐ
­ÝÚÐ-2ÐÐ
­ÜÚÐ-3ÐÐ
­©ÚÐ-4ÐÐ
­¬ÚÐ-5ÐÐ
­­ÚÐ-6ÐÐ
­®ÚÐ-7ÐÐ
­°ÚÐ-8ÐÐ
­²ÚÐ-6ÐÐ
­³ÚÐ-9ÐÐ
­´ÚÐ-:ÐÐ
­µÚÐ-;ÐÐ
­¶ÚÐ-<ÐÐ
­·ÚÐ-=ÐÐ
­¸ÚÐ->ÐÐ
­¹ÚÐ-?ÐÐ
­ºÚÐ-@ÐÐ
­»ÚÐ-AÐÐ
­ÚÐ-6ÐB-CÐDE-FGHÐIJ­