[fba71e]: / project / sparkplug™_mqtt_host_b9741afd / function_blocks_8ad6e219 / fb_primaryhost_ec6863e3 / fb_primaryhostmessageconsumer_070fbc41 / consumenbirthmessage_ee0eac84 / ee0eac84c8344e50b4db8007e97dd813.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 13.8 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)ee0eac84-c834-4e50-b4db-8007e97dd813","ParentGuid":"(Guid)070fbc41-83aa-457a-b520-a064079b516d","Name":"(string)ConsumeNBIRTHMessage","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)922","Tag":null,"Text":"(string)// Get Edge"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)923","Tag":null,"Text":"(string)MyEdge REF= pPrimaryHost^.GetEdge( GroupId := TopicParser.GroupId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)924","Tag":null,"Text":"(string)                                    EdgeId := TopicParser.EdgeId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)925","Tag":null,"Text":"(string)                                    eError => GetEdgeError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)926","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)927","Tag":null,"Text":"(string)CASE GetEdgeError OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)928","Tag":null,"Text":"(string)    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)929","Tag":null,"Text":"(string)    SPStack.ERROR.GroupIDNotFound: // ==> DETECTED NEW GROUP!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)930","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)931","Tag":null,"Text":"(string)        MyGroupId REF= pPrimaryHost^.allocGroupId( GroupId := TopicParser.GroupId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)932","Tag":null,"Text":"(string)                                                    eError => allocGroupIdError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)933","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)934","Tag":null,"Text":"(string)        //log new groupid"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)935","Tag":null,"Text":"(string)        WriteHostLog( CmpLog.LogClass.LOG_INFO, 'Host registered new GroupID: %s', TO_STRING( TopicParser.GroupId ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)936","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)937","Tag":null,"Text":"(string)        IF allocGroupIdError = SPStack.ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)938","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)939","Tag":null,"Text":"(string)            MyEdge REF= pPrimaryHost^.allocEdgetoGroupId( EdgeId := TopicParser.EdgeId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)940","Tag":null,"Text":"(string)                                                           itfGroupID := MyGroupId.itfGroupID,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)941","Tag":null,"Text":"(string)                                                           eError => allocEdgetoGroupIdError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)942","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)943","Tag":null,"Text":"(string)            // Log new remote edge"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)944","Tag":null,"Text":"(string)            WriteHostLog( CmpLog.LogClass.LOG_INFO, 'Host registered Remote Edge: %s', TO_STRING( TopicParser.EdgeId ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)945","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)946","Tag":null,"Text":"(string)            IF allocEdgetoGroupIdError = SPStack.ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)947","Tag":null,"Text":"(string)                MyEdge.ProcessNBIRTH( itfPrimaryHost := pPrimaryHost^,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)948","Tag":null,"Text":"(string)                                       pMessage := RecvMesg,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)949","Tag":null,"Text":"(string)                                       xError => xProcessNBIRTHError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)950","Tag":null,"Text":"(string)                                       eError => ProcessNBIRTHerror );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1047","Tag":null,"Text":"(string)                                       "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)951","Tag":null,"Text":"(string)            ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)952","Tag":null,"Text":"(string)                xProcessNBIRTHError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)953","Tag":null,"Text":"(string)                //eError := eError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)954","Tag":null,"Text":"(string)            END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)955","Tag":null,"Text":"(string)        ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)956","Tag":null,"Text":"(string)            xProcessNBIRTHError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)957","Tag":null,"Text":"(string)            //eError := eError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)958","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)959","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)960","Tag":null,"Text":"(string)        "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)961","Tag":null,"Text":"(string)    SPStack.ERROR.EdgeIDNotFound: // ==> DETECTED NEW EDGE!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)962","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)963","Tag":null,"Text":"(string)        MyGroupId REF= pPrimaryHost^.GetGroupID( GroupId := TopicParser.GroupId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)964","Tag":null,"Text":"(string)                                                  eError => GetGroupIDerror );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)965","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)966","Tag":null,"Text":"(string)        //log new groupid"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)967","Tag":null,"Text":"(string)        WriteHostLog( CmpLog.LogClass.LOG_INFO, 'Host registered new GroupID: %s', TO_STRING( TopicParser.GroupId ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)968","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)969","Tag":null,"Text":"(string)        IF eError = SPStack.ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)970","Tag":null,"Text":"(string)            MyEdge REF= pPrimaryHost^.allocEdgetoGroupId( EdgeId := TopicParser.EdgeId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)971","Tag":null,"Text":"(string)                                                           itfGroupID := MyGroupId.itfGroupID,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)972","Tag":null,"Text":"(string)                                                           eError => allocEdgetoGroupIdError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)973","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)974","Tag":null,"Text":"(string)            // Log new remote edge"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)975","Tag":null,"Text":"(string)            WriteHostLog( CmpLog.LogClass.LOG_INFO, 'Host registered Remote Edge: %s', TO_STRING( TopicParser.EdgeId ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)976","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)977","Tag":null,"Text":"(string)            IF eError = SPStack.ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)978","Tag":null,"Text":"(string)                MyEdge.ProcessNBIRTH( itfPrimaryHost := pPrimaryHost^,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)979","Tag":null,"Text":"(string)                                       pMessage := RecvMesg,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)980","Tag":null,"Text":"(string)                                       xError => xProcessNBIRTHError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)981","Tag":null,"Text":"(string)                                       eError => ProcessNBIRTHerror );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1045","Tag":null,"Text":"(string)                                       "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)982","Tag":null,"Text":"(string)            ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)983","Tag":null,"Text":"(string)                xProcessNBIRTHError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)984","Tag":null,"Text":"(string)                //eError := eError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)985","Tag":null,"Text":"(string)            END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)986","Tag":null,"Text":"(string)        ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)987","Tag":null,"Text":"(string)            xProcessNBIRTHError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)988","Tag":null,"Text":"(string)            //eError := eError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)989","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)990","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)991","Tag":null,"Text":"(string)        "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)992","Tag":null,"Text":"(string)    SPStack.ERROR.NO_ERROR: // ==> UPDATE EXISTING EDGE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)993","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)994","Tag":null,"Text":"(string)        MyEdge.ProcessNBIRTH( itfPrimaryHost := pPrimaryHost^,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)995","Tag":null,"Text":"(string)                               pMessage := RecvMesg,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)996","Tag":null,"Text":"(string)                               xError => xProcessNBIRTHError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)997","Tag":null,"Text":"(string)                               eError => ProcessNBIRTHerror );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1050","Tag":null,"Text":"(string)ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)999","Tag":null,"Text":"(string)    ; //{info 'TODO: maybe some sort of error??'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)5","Tag":null,"Text":"(string)END_CASE"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)1022","Tag":null,"Text":"(string)METHOD PRIVATE ConsumeNBIRTHMessage"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1023","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1024","Tag":null,"Text":"(string)    pPrimaryHost : POINTER TO FB_PrimaryHost;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1025","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1026","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1027","Tag":null,"Text":"(string)    RecvMesg : REFERENCE TO SPStack.FB_Payload;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1028","Tag":null,"Text":"(string)    RecvTopic : WSTRING( SPStack.GC_Sparkplug.supported_string_lengths );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1029","Tag":null,"Text":"(string)    TopicParser : FB_TopicParser; "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1030","Tag":null,"Text":"(string)    MyDevice : REFERENCE TO FB_RemoteDevice;    "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1031","Tag":null,"Text":"(string)    MyGroupId : REFERENCE TO FB_GroupId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1032","Tag":null,"Text":"(string)    MyEdge : REFERENCE TO FB_RemoteEdge;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1040","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1041","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1033","Tag":null,"Text":"(string)    GetEdgeError : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error. "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1034","Tag":null,"Text":"(string)    allocGroupIdError : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1035","Tag":null,"Text":"(string)    allocEdgetoGroupIdError : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1036","Tag":null,"Text":"(string)    ProcessNBIRTHerror : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1038","Tag":null,"Text":"(string)    GetGroupIDerror : SPStack.ERROR; // an error that will be given back by a function, but we can handle the error."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1042","Tag":null,"Text":"(string)    xProcessNBIRTHError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1039","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)"}}]}}}}}}},"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"}