a b/project/sparkplug™_mqtt_host_b9741afd/function_blocks_8ad6e219/fb_remoteedge_9577d5db/fb_remoteedge_c0d3796d/getdevice_96668bd8/96668bd848ca48d582e1eb2ff0b62ef3.object
1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)96668bd8-48ca-48d5-82e1-eb2ff0b62ef3","ParentGuid":"(Guid)c0d3796d-4869-4b84-9cfc-2810ff81dc66","Name":"(string)GetDevice","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)154","Tag":null,"Text":"(string)//This call isn't reentrant so don't call it multithread"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)155","Tag":null,"Text":"(string)eError := SPStack.ERROR.DeviceIDNotFound;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)156","Tag":null,"Text":"(string)_devices.ItterateRestart( HasNext => HasNext );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)157","Tag":null,"Text":"(string)WHILE HasNext AND NOT FoundDevice DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)158","Tag":null,"Text":"(string)    _devices.ItterateNext( itfElement => itfElement, HasNext => HasNext );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)161","Tag":null,"Text":"(string)    IF __QUERYPOINTER( itfElement, pDevice ) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)163","Tag":null,"Text":"(string)        IF pDevice^.Name = DeviceID THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)164","Tag":null,"Text":"(string)            FoundDevice := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)165","Tag":null,"Text":"(string)            eError      := SPStack.ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)166","Tag":null,"Text":"(string)            GetDevice   REF= pDevice^;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)167","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)168","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)5","Tag":null,"Text":"(string)END_WHILE"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)141","Tag":null,"Text":"(string)// Returns "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)142","Tag":null,"Text":"(string)METHOD GetDevice : REFERENCE TO FB_RemoteDevice"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)143","Tag":null,"Text":"(string)VAR_IN_OUT CONSTANT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)144","Tag":null,"Text":"(string)    DeviceID : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)145","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)146","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)147","Tag":null,"Text":"(string)    eError : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)148","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)149","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)150","Tag":null,"Text":"(string)    HasNext     : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)151","Tag":null,"Text":"(string)    FoundDevice : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)152","Tag":null,"Text":"(string)    itfElement  : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)153","Tag":null,"Text":"(string)    pDevice     : POINTER TO FB_RemoteDevice;"}},{"@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"}