[451759]: / project / sparkplug™_mqtt_edge_and_host-stack_b9741afd / function_blocks_8ad6e219 / fb_payloadsimple_87cbd74b / fb_payloadsimpleencoder_1f607d29 / addmetricchanges_2e6dc1b3 / 2e6dc1b366b2494683d8f4a0e1d2eadd.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 3.8 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)2e6dc1b3-66b2-4946-83d8-f4a0e1d2eadd","ParentGuid":"(Guid)1f607d29-4c3d-4ff9-917a-3446e8ba16b7","Name":"(string)AddMetricChanges","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)1446","Tag":null,"Text":"(string)MyTempMetric REF= _Payload.AddMetricBlank(eError => AddMetricChanges);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1447","Tag":null,"Text":"(string)// Maybe check for SparkplugObject = 0 ?"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1448","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1449","Tag":null,"Text":"(string)IF AddMetricChanges = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1450","Tag":null,"Text":"(string)    MyTempMetric.SetName(Name := SparkplugObject.Name);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1494","Tag":null,"Text":"(string)\t//We mustn't add the Value (nor its datatype and timestamp) if it isn't being notified!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1496","Tag":null,"Text":"(string)\t//Let's delegate that responsibilty to FB_Metric :D"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1497","Tag":null,"Text":"(string)\tAddMetricChanges := SparkplugObject.AddChangesToPayload(Payload := _Payload, Metric := MyTempMetric, Timestamp := Timestamp);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1481","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1493","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)1482","Tag":null,"Text":"(string)METHOD AddMetricChanges : ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1483","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1484","Tag":null,"Text":"(string)    Timestamp : T_DateTime;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1485","Tag":null,"Text":"(string)    SparkplugObject : IMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1486","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1487","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1488","Tag":null,"Text":"(string)    MyTempMetric : REFERENCE TO FB_PayloadMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1489","Tag":null,"Text":"(string)    Decoded : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1490","Tag":null,"Text":"(string)    Double : LREAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1491","Tag":null,"Text":"(string)    Boolean : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1492","Tag":null,"Text":"(string)    String_UUID_Text : WSTRING(GC_Sparkplug.supported_string_lengths);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)19","Tag":null,"Text":"(string)END_VAR"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}