[a5a4b0]: / project / sparkplug™_mqtt_host_b9741afd / function_blocks_8ad6e219 / fb_primaryhost_ec6863e3 / fb_primaryhostmessageconsumer_0bdfb382 / consumeddatamessage_20a4907d / 20a4907d812444f0879175fbda2d27fe.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 2.8 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)20a4907d-8124-44f0-8791-75fbda2d27fe","ParentGuid":"(Guid)0bdfb382-e83f-44ce-8b28-d26c6658b28d","Name":"(string)ConsumeDDATAMessage","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":{"TextBlobForSerialisation":"(string)MyDevice REF= pPrimaryHost^.GetDevice( GroupId := pTopicParser^.GroupId,\n                                       EdgeId := pTopicParser^.EdgeId,\n                                       DeviceId := pTopicParser^.DeviceId,\n                                       eError => GetDeviceError );\n\nCASE GetDeviceError OF\n    SPStack.ERROR.NO_ERROR: // ==> UPDATE EXISTING EDGE\n        MyDevice.ProcessDDATA( itfPrimaryHost := pPrimaryHost^,\n                               pMessage := RecvMesg,\n                               xError => xProcessDDATAError,\n                               eError => ProcessDDATAError );\nELSE\n    xProcessDDATAError := TRUE;\n    ProcessDDATAError := SPStack.Error.DeviceIDNotFound;\n    WriteHostLog( CmpLog.LogClass.LOG_ERROR,\n                  'PrimaryHost process DDATA metric error: %s',\n                  TO_STRING( GetDeviceError ) );\nEND_CASE","LineInfoPersistence":"(string)20a4907d-8124-44f0-8791-75fbda2d27fe_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)METHOD PRIVATE ConsumeDDATAMessage\nVAR_INPUT\n    pPrimaryHost : POINTER TO FB_PrimaryHost;\n    pTopicParser : POINTER TO FB_TopicParser;     \nEND_VAR\nVAR\n    RecvMesg : REFERENCE TO SPStack.FB_Payload;\n    MyDevice : REFERENCE TO FB_RemoteDevice;    \nEND_VAR\nVAR_OUTPUT\n    GetDeviceError : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error.    \n    ProcessDDATAError : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error.\n    xProcessDDATAError : BOOL;\nEND_VAR","LineInfoPersistence":"(string)20a4907d-8124-44f0-8791-75fbda2d27fe_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"}