[c91150]: / project / sparkplug™_mqtt_edge_b9741afd / function_blocks_d9bd2ff1 / fb_edge_df8b6e33 / fb_edgemqtt_c54cbb14 / client_bcaccbe4 / clientdiag_7335261b / 7335261b43ff498f8b1b35cd3ec50ee3.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 2.8 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)7335261b-43ff-498f-8b1b-35cd3ec50ee3","ParentGuid":"(Guid)c54cbb14-4e89-4ed1-b691-af7ed3b182ba","Name":"(string)ClientDiag","Properties":{"@Type":"2c41fa04:IDictionary","@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)bcaccbe4-f127-454d-ad2e-d86831808a97"}]}}}}]},"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}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)ClientDiag := 'MQTT Client';\nLogClass := CmpLog.LogClass.LOG_DEBUG;\n\nIF _Client.xEnable THEN\n    ClientDiag := CONCAT( ClientDiag, '.EN' );\nELSE\n    ClientDiag := CONCAT( ClientDiag, '.IDLE' );\nEND_IF\n\nIF _Client.xDone THEN\n    ClientDiag := CONCAT( ClientDiag, '.DN' );\nEND_IF\n\nIF _Client.xBusy THEN\n    ClientDiag := CONCAT( ClientDiag, '.BUSY' );\nEND_IF\n\nIF _Client.xConnectedToBroker THEN\n    ClientDiag := CONCAT( ClientDiag, '.CONN' );\nEND_IF\n\nIF _Client.xError THEN\n    LogClass := CmpLog.LogClass.LOG_ERROR;\n    ClientDiag := CONCAT( ClientDiag, '.ERR= ' );\n    ClientDiag := CONCAT( ClientDiag, TO_STRING( _Client.eMQTTError ) );\nEND_IF\n\n// log on change\nIF ClientDiag <> _ClientDiag THEN\n    WriteEdgeLog( LogClass,\n                  '%s',\n                  ClientDiag );\nEND_IF;\n\n// store \n_ClientDiag := ClientDiag;","LineInfoPersistence":"(string)7335261b-43ff-498f-8b1b-35cd3ec50ee3_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)(*\n\tReturns a dynamic connection state string for diagnosis purposes.\n \tThis string is also logged into the SparkplugLog on change.\n*)\nMETHOD ClientDiag : STRING\nVAR\n    LogClass : UDINT;\nEND_VAR","LineInfoPersistence":"(string)7335261b-43ff-498f-8b1b-35cd3ec50ee3_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}