[03c4a2]: / project / sparkplug™_mqtt_edge_b9741afd / function_blocks_d9bd2ff1 / fb_edge_df8b6e33 / fb_edge_af25efb2 / nbirth_cc5cb22e / publishnbirthentry_bfb441ac / bfb441ac102f4cd195767a84d0c95b53.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 12.2 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)bfb441ac-102f-4cd1-9576-7a84d0c95b53","ParentGuid":"(Guid)af25efb2-e7d3-4d17-9b46-1d6d5c77fe77","Name":"(string)PublishNBIRTHEntry","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)cc5cb22e-b9d6-4358-9bf9-16f9c770f107"}]}}}}]},"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)776","Tag":null,"Text":"(string)PublishNBIRTHEntry := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)850","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)851","Tag":null,"Text":"(string)WriteEdgeLog( CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)852","Tag":null,"Text":"(string)              'EoN Uses Aliases: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)849","Tag":null,"Text":"(string)              TO_STRING( UseAlias ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)853","Tag":null,"Text":"(string)              "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)847","Tag":null,"Text":"(string)IF UseAlias THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)848","Tag":null,"Text":"(string)    ProvideAlias( AllMetricsList := _Metrics );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)846","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)854","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)777","Tag":null,"Text":"(string)NBIRTHError := _SparkplugB.GetEoNNodeBirthCertificate( LWT_BDSeq := _NDEATH.Uint64, // should contain NDEATH.Value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)778","Tag":null,"Text":"(string)                                                       NBIRTH := _NBIRTH,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)779","Tag":null,"Text":"(string)                                                       AllMetricsList := _Metrics,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)855","Tag":null,"Text":"(string)                                                       UseAliases:=UseAlias );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)780","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)781","Tag":null,"Text":"(string)IF NBIRTHError <> SPStack.ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)782","Tag":null,"Text":"(string)    WriteEdgeLog( CmpLog.LogClass.LOG_DEBUG,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)783","Tag":null,"Text":"(string)                  'EoN Publish NBIRTHSPStack.ERROR: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)784","Tag":null,"Text":"(string)                  TO_STRING( NBIRTHError ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)785","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)840","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)842","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)786","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)787","Tag":null,"Text":"(string)(*"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)788","Tag":null,"Text":"(string)    The NBIRTH message can also include optional ‘Node Control’ payload components. These are used by a backend"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)789","Tag":null,"Text":"(string)    application to control aspects of the EoN node. The following are examples of Node Control metrics."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)790","Tag":null,"Text":"(string)    •   Metric name: ‘Node Control/Reboot’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)791","Tag":null,"Text":"(string)        o Used by backend application(s) to reboot an EoN node."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)792","Tag":null,"Text":"(string)    •   Metric name: ‘Node Control/Rebirth’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)793","Tag":null,"Text":"(string)        o Used by backend application(s) to request a new NBIRTH and DBIRTH(s) from an EoN node."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)794","Tag":null,"Text":"(string)    •   Metric name: ‘Node Control/Next Server’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)795","Tag":null,"Text":"(string)        o Used by backend application(s) to request an EoN node to walk to the next MQTT Server in its list"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)796","Tag":null,"Text":"(string)        in multi-MQTT Server environments."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)797","Tag":null,"Text":"(string)    •   Metric name: ‘Node Control/Scan rate’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)798","Tag":null,"Text":"(string)        o Used by backed application(s) to modify a poll rate on an EoN node."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)799","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)800","Tag":null,"Text":"(string)    The NBIRTH message can also include optional ‘Properties’ of an EoN node. The following are examples of"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)801","Tag":null,"Text":"(string)    Property metrics."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)802","Tag":null,"Text":"(string)    •   Metric name: ‘Properties/Hardware Make’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)803","Tag":null,"Text":"(string)        o Used to transmit the hardware manufacturer of the EoN node"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)804","Tag":null,"Text":"(string)    •   Metric name: ‘Properties/Hardware Model’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)805","Tag":null,"Text":"(string)        o Used to transmit the hardware model of the EoN node"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)806","Tag":null,"Text":"(string)    •    Metric name: ‘Properties/OS’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)807","Tag":null,"Text":"(string)        o Used to transmit the operating system of the EoN node"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)808","Tag":null,"Text":"(string)    •   Metric name: ‘Properties/OS Version’"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)809","Tag":null,"Text":"(string)        o Used to transmit the OS version of the EoN node"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)810","Tag":null,"Text":"(string)*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)811","Tag":null,"Text":"(string)//Encode the node birth certificate, which should only take 1 scan!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)812","Tag":null,"Text":"(string)_SparkplugB.Encode( Enable := TRUE );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)813","Tag":null,"Text":"(string)REPEAT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)814","Tag":null,"Text":"(string)    _SparkplugB();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)815","Tag":null,"Text":"(string)    EncodeError := _SparkplugB.EncodeError( eError => Encode_eError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)816","Tag":null,"Text":"(string)    EncodeDone := _SparkplugB.Encoded();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)817","Tag":null,"Text":"(string)UNTIL EncodeDone OR EncodeError"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)818","Tag":null,"Text":"(string)END_REPEAT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)819","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)820","Tag":null,"Text":"(string)_SparkplugB.Encode( Enable := FALSE );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)821","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)822","Tag":null,"Text":"(string)IF EncodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)823","Tag":null,"Text":"(string)    WriteEdgeLog( CmpLog.LogClass.LOG_ERROR,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)824","Tag":null,"Text":"(string)                  'EoN Encoding NBIRTH dataSPStack.ERROR: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)825","Tag":null,"Text":"(string)                  TO_STRING( Encode_eError ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)826","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)827","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)828","Tag":null,"Text":"(string)// Now retrieve the serialised blob"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)829","Tag":null,"Text":"(string)_SparkplugB.GetEncodedBlob( Blob := _Blob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)830","Tag":null,"Text":"(string)                            BlobSize := _BlobSize );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)831","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)832","Tag":null,"Text":"(string)// Enable the publisher"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)833","Tag":null,"Text":"(string)_MQTT.EnablePublisher();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)834","Tag":null,"Text":"(string)// Write a log message"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)835","Tag":null,"Text":"(string)WriteEdgeLog( CmpLog.LogClass.LOG_DEBUG,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)836","Tag":null,"Text":"(string)              'EoN Publish NBIRTH data to: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)837","Tag":null,"Text":"(string)              WSTRING_TO_STRING( _TopicProvider.wsNBIRTHpublisherTopic ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)838","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)106","Tag":null,"Text":"(string)PublishNBIRTHEntry := EncodeDone OR EncodeError;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)635","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)636","Tag":null,"Text":"(string)METHOD PublishNBIRTHEntry : BOOL"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)637","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)638","Tag":null,"Text":"(string)    EncodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)639","Tag":null,"Text":"(string)    Encode_eError : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)640","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)641","Tag":null,"Text":"(string)VAR_INST"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)642","Tag":null,"Text":"(string)    NBIRTHError : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)643","Tag":null,"Text":"(string)    NBIRTHTopic : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)644","Tag":null,"Text":"(string)    EncodeDone : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)87","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"}