[8ed4a5]: / project / co⚡e_-_sparkplug™_mqtt_edge_and_host-edge_b9741afd / function_blocks_d9bd2ff1 / fb_edge_df8b6e33 / fb_edge_af25efb2 / ndata_aa0ac731 / publishndataentry_49253dcd / 49253dcd864845bbad4b0ebad03a613a.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 8.6 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)49253dcd-8648-45bb-ad4b-0ebad03a613a","ParentGuid":"(Guid)af25efb2-e7d3-4d17-9b46-1d6d5c77fe77","Name":"(string)PublishNDATAEntry","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)24568a24-c491-472c-a21f-ee5d33859fab","@Value":{"@Type":"24568a24","@Value":{"MemoryReserveForOnlineChange":"(int)0","ExcludeFromBuild":"(bool)False","External":"(bool)False","EnableSystemCall":"(bool)False","CompilerDefines":"(string)","LinkAlways":"(bool)False","Undefines":{"@Type":"[string]","@Value":[]}}}},{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)21af5390-2942-461a-bf89-951aaf6999f1","@Value":"(Guid)aa0ac731-483c-4a3a-aefa-268b00602330"}]}}}}]},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"24568a24":"{24568a24-c491-472c-a21f-ee5d33859fab}","2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","bool":"System.Boolean","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","int":"System.Int32","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)1143","Tag":null,"Text":"(string)PublishNDATAEntry := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1144","Tag":null,"Text":"(string)_SparkplugB.SetSeq();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1145","Tag":null,"Text":"(string)_SparkplugB.Encode(Enable := TRUE);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1146","Tag":null,"Text":"(string)REPEAT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1147","Tag":null,"Text":"(string)    _SparkplugB();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1148","Tag":null,"Text":"(string)    EncodeError := _SparkplugB.EncodeError(eError => Encode_eError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1149","Tag":null,"Text":"(string)    EncodeDone := _SparkplugB.Encoded();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1150","Tag":null,"Text":"(string)UNTIL EncodeDone OR EncodeError"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1151","Tag":null,"Text":"(string)END_REPEAT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1152","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1153","Tag":null,"Text":"(string)_SparkplugB.Encode(Enable := FALSE);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1154","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1155","Tag":null,"Text":"(string)IF EncodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1156","Tag":null,"Text":"(string)    SPStack.WriteDeviceLog(SPStack.GC_sparkplug.CMP_EDGE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1157","Tag":null,"Text":"(string)        SPStack.CmpLog.LogClass.LOG_ERROR,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1158","Tag":null,"Text":"(string)        'Encoding DDATASPStack.ERROR: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1159","Tag":null,"Text":"(string)        TO_STRING(Encode_eError));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1160","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1161","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1162","Tag":null,"Text":"(string)_SparkplugB.GetEncodedBlob(Blob := _Blob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1163","Tag":null,"Text":"(string)    BlobSize := _BlobSize);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1164","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1165","Tag":null,"Text":"(string)_MQTT.EnablePublisher();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1166","Tag":null,"Text":"(string)SPStack.WriteDeviceLog(SPStack.GC_sparkplug.CMP_EDGE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1167","Tag":null,"Text":"(string)    SPStack.CmpLog.LogClass.LOG_DEBUG,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1168","Tag":null,"Text":"(string)    'NDATA payload published in: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1169","Tag":null,"Text":"(string)    WSTRING_TO_STRING(_TopicProvider.wsNDATApublisherTopic));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1170","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)324","Tag":null,"Text":"(string)PublishNDATAEntry := EncodeDone OR EncodeError;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)1114","Tag":null,"Text":"(string)(* "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1115","Tag":null,"Text":"(string)    Node DATA (NDATA)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1116","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1117","Tag":null,"Text":"(string)    NDATA messages are used to update the values of any EoN node metrics that were originally published in the"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1118","Tag":null,"Text":"(string)    NBIRTH message. Any time an input changes on the EoN node, a NDATA message should be generated and published"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1119","Tag":null,"Text":"(string)    to the MQTT Server. If multiple metrics on the EoN node change, they can all be included in a single NDATA "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1120","Tag":null,"Text":"(string)    message. "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1121","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1122","Tag":null,"Text":"(string)    The following is a representation of a simple NDATA message on the topic:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1123","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1124","Tag":null,"Text":"(string)        spBv1.0/Sparkplug™ B Devices/NDATA/Raspberry Pi"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1125","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1126","Tag":null,"Text":"(string)    In the topic above the following information is known based on the Sparkplug™ topic definition:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1127","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1128","Tag":null,"Text":"(string)    •   The ‘Group ID’ of this EoN node is: Sparkplug™ B Devices"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1129","Tag":null,"Text":"(string)    •   The ‘EoN node ID’ of this EoN node is: Raspberry Pi"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1130","Tag":null,"Text":"(string)    •   *This is an NBIRTH message from the EoN node"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1131","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1132","Tag":null,"Text":"(string)*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1133","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1134","Tag":null,"Text":"(string)METHOD PublishNDATAEntry : BOOL"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1135","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1136","Tag":null,"Text":"(string)    EncodeError : BOOL := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1137","Tag":null,"Text":"(string)    Encode_eError : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1138","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1139","Tag":null,"Text":"(string)VAR_INST"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1140","Tag":null,"Text":"(string)    NDATATopic : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1141","Tag":null,"Text":"(string)    EncodeDone : BOOL := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1142","Tag":null,"Text":"(string)    PublishDone : BOOL := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","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"}