[044c58]: / project / sparkplug™_mqtt_edge_b9741afd / function_blocks_d9bd2ff1 / fb_edge_df8b6e33 / fb_edge_af25efb2 / imessagesource_c4417c3e / getmessage_c4b5dd33 / c4b5dd33f927401d9d82590175aabca7.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 7.1 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)c4b5dd33-f927-401d-9d82-590175aabca7","ParentGuid":"(Guid)af25efb2-e7d3-4d17-9b46-1d6d5c77fe77","Name":"(string)getMessage","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)c4417c3e-97fb-488f-a5a7-821cee237652"}]}}}}]},"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":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)256","Tag":null,"Text":"(string)IF NOT THIS^._IMessageSource_publishing THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)257","Tag":null,"Text":"(string)    IF readyForPublish() THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)258","Tag":null,"Text":"(string)        THIS^._IMessageSource_publishing := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)259","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)260","Tag":null,"Text":"(string)        IF __QUERYINTERFACE( _IMessageSource_Device, itfMessageSource ) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)261","Tag":null,"Text":"(string)            IF itfMessageSource.getMessage( pEoN := THIS,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)276","Tag":null,"Text":"(string)                                            pSparkplugB => pSparkplugB,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)262","Tag":null,"Text":"(string)                                            pPayload => pPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)263","Tag":null,"Text":"(string)                                            pTopic => pTopic,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)264","Tag":null,"Text":"(string)                                            timeout => timeout ) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)265","Tag":null,"Text":"(string)                getMessage := TRUE; // SUCCESS"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)266","Tag":null,"Text":"(string)                THIS^._IMessageSource_published := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)267","Tag":null,"Text":"(string)            ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)268","Tag":null,"Text":"(string)                THIS^._IMessageSource_publishing := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)269","Tag":null,"Text":"(string)            END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)270","Tag":null,"Text":"(string)        ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)271","Tag":null,"Text":"(string)            THIS^._IMessageSource_publishing := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)272","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)273","Tag":null,"Text":"(string)    ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)274","Tag":null,"Text":"(string)        THIS^._IMessageSource_publishing := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)275","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)21","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)217","Tag":null,"Text":"(string)// Congratulations! You're going to be published!!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)218","Tag":null,"Text":"(string)// Returning TRUE indicates that you accept the deal for exclusive publishing rights!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)219","Tag":null,"Text":"(string)// Returns false if you've already given the rights away, OR if you don't even have anything to publish"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)220","Tag":null,"Text":"(string)METHOD getMessage : BOOL"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)277","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)278","Tag":null,"Text":"(string)    pEoN : POINTER TO FB_Edge;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)279","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)221","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)222","Tag":null,"Text":"(string)    // contains the unencoded FB_PayloadSimpleEncoder"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)223","Tag":null,"Text":"(string)    // the IMessageSource will not set the SeqNum, this will be done by the publisher!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)224","Tag":null,"Text":"(string)    // 0 (Null pointer) if it doesn't want published"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)225","Tag":null,"Text":"(string)    pSparkplugB : POINTER TO SPStack.FB_SparkplugBSimple;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)226","Tag":null,"Text":"(string)    pPayload : POINTER TO SPStack.FB_PayloadSimpleEncoder;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)227","Tag":null,"Text":"(string)    pTopic : POINTER TO WSTRING(SPStack.GC_sparkplug.supported_string_lengths); // resembles the topic under which the message is posted"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)228","Tag":null,"Text":"(string)    // LT#0s if there's no timeout, and the publisher can just sit on your work for ever"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)229","Tag":null,"Text":"(string)    // Otherwise, you can assume after timeout expires that the publish was unsuccessful."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)230","Tag":null,"Text":"(string)    // Note that your publiser probably "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)231","Tag":null,"Text":"(string)    timeout : LTIME;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)232","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)233","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)234","Tag":null,"Text":"(string)    itfMessageSource : IMessageSource;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)235","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"}