[91f2a2]: / project / sparkplug™_mqtt_edge_and_host-stack_b9741afd / function_blocks_8ad6e219 / fb_primaryhost_ec6863e3 / fb_primaryhost_948b5570 / initialise_04a2bfd3 / 04a2bfd357654beba7bc47367202099c.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 7.9 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)04a2bfd3-5765-4beb-a7bc-47367202099c","ParentGuid":"(Guid)948b5570-7cc5-435c-9690-793c65eb192c","Name":"(string)Initialise","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)560","Tag":null,"Text":"(string)// Only use the corrected names throughout PrimaryHost!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)561","Tag":null,"Text":"(string)_cPrimaryHostID := ReplaceIllegalCharsWithUnderscore(PrimaryHostID);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)562","Tag":null,"Text":"(string)_TopicProvider.setTopics(SparkplugNamespace := GC_sparkplug.SPARKPLUGB,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)563","Tag":null,"Text":"(string)    PrimaryHostId := _cPrimaryHostID);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)564","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)565","Tag":null,"Text":"(string)sPrimaryHostID := WSTRING_TO_STRING(_cPrimaryHostID);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)566","Tag":null,"Text":"(string)sClientID := sPrimaryHostID;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)567","Tag":null,"Text":"(string)MakeValidClientID(sClientID);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)568","Tag":null,"Text":"(string)WriteStackLog(gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)569","Tag":null,"Text":"(string)    CmpLog.LogClass.LOG_DEBUG,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)570","Tag":null,"Text":"(string)    'PrimaryHost ID: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)571","Tag":null,"Text":"(string)    sPrimaryHostID);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)572","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)573","Tag":null,"Text":"(string)// Setup the MQTT client connection"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)574","Tag":null,"Text":"(string)_MQTT.SetBroker(sUrl := ServerUrl,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)575","Tag":null,"Text":"(string)    uiPort := ServerPort,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)576","Tag":null,"Text":"(string)    uiKeepAlive := KeepAlive);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)577","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)578","Tag":null,"Text":"(string)WriteStackLog(gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)579","Tag":null,"Text":"(string)    CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)580","Tag":null,"Text":"(string)    'PrimaryHost CleanSession: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)581","Tag":null,"Text":"(string)    BOOL_TO_STRING(CleanSession));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)582","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)583","Tag":null,"Text":"(string)WriteStackLog(gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)584","Tag":null,"Text":"(string)    CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)585","Tag":null,"Text":"(string)    'PrimaryHost User: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)586","Tag":null,"Text":"(string)    WSTRING_TO_STRING(Username));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)587","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)588","Tag":null,"Text":"(string)WriteStackLog(gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)589","Tag":null,"Text":"(string)    CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)590","Tag":null,"Text":"(string)    'PrimaryHost Pass: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)591","Tag":null,"Text":"(string)    '****************');"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)592","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)593","Tag":null,"Text":"(string)// Session Credentials"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)594","Tag":null,"Text":"(string)_MQTT.SetSessionCredentials(xCleanSession := CleanSession,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)595","Tag":null,"Text":"(string)    sClientID := sClientID,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)596","Tag":null,"Text":"(string)    wsUser := Username,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)597","Tag":null,"Text":"(string)    wsPass := Password);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)598","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)599","Tag":null,"Text":"(string)// Session TLS"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)600","Tag":null,"Text":"(string)_MQTT.SetSessionTLS(xUseTLS := UseTLS,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)601","Tag":null,"Text":"(string)    hCert := hCert);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)602","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)603","Tag":null,"Text":"(string)WriteStackLog(gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)604","Tag":null,"Text":"(string)    CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)605","Tag":null,"Text":"(string)    'PrimaryHost TLS Certificate Handle: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)606","Tag":null,"Text":"(string)    SEL(UseTLS, 'None', TO_STRING(hCert)));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)607","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)608","Tag":null,"Text":"(string)WriteStackLog(gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)609","Tag":null,"Text":"(string)    CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)610","Tag":null,"Text":"(string)    'PrimaryHost TLS : %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)611","Tag":null,"Text":"(string)    SEL(UseTLS, 'Disabled', 'Enabled'));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)612","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)613","Tag":null,"Text":"(string)// Session Lastwill"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)614","Tag":null,"Text":"(string)LastWillSet := SetLastWillAndTestament();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)48","Tag":null,"Text":"(string)Initialise := LastWillSet;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)554","Tag":null,"Text":"(string)METHOD Initialise : BOOL"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)555","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)556","Tag":null,"Text":"(string)    sPrimaryHostID : STRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)557","Tag":null,"Text":"(string)    sClientID : STRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)558","Tag":null,"Text":"(string)    ComposeError : Error;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)559","Tag":null,"Text":"(string)    LastWillSet : BOOL;"}},{"@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"}