[05c878]: / project / sparkplug™_mqtt_edge_and_host-stack_b9741afd / function_blocks_8ad6e219 / fb_primaryhost_ec6863e3 / fb_primaryhostmqtt_5eddef6f / client_e31d9c9c / setbroker_9e5a0f3e / 9e5a0f3e2efe4dd7a9f04e20f2656125.object  Maximize  Restore  History

Download this file

1 lines (1 with data), 6.4 kB

1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)9e5a0f3e-2efe-4dd7-a9f0-4e20f2656125","ParentGuid":"(Guid)5eddef6f-704e-42d7-820d-1501e598bd8a","Name":"(string)SetBroker","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)e31d9c9c-a38f-41c5-9bac-03b13803b176"}]}}}}]},"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)298","Tag":null,"Text":"(string)SetBroker := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)299","Tag":null,"Text":"(string)_serverUrl := sUrl;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)300","Tag":null,"Text":"(string)_serverPort := uiPort;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)301","Tag":null,"Text":"(string)_keepAlive := uiKeepAlive;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)302","Tag":null,"Text":"(string)_ClientPingInterval := UINT_TO_TIME( uiKeepAlive * 1000 ); // seconds to milliseconds"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)303","Tag":null,"Text":"(string)WriteStackLog( gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)315","Tag":null,"Text":"(string)                 CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)304","Tag":null,"Text":"(string)                'MQTT Client SetBroker Adress: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)305","Tag":null,"Text":"(string)                _serverUrl );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)307","Tag":null,"Text":"(string)WriteStackLog( gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)316","Tag":null,"Text":"(string)                CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)308","Tag":null,"Text":"(string)                'MQTT Client SetBroker Port: %s',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)309","Tag":null,"Text":"(string)                TO_STRING( _serverPort ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)311","Tag":null,"Text":"(string)WriteStackLog( gc_sparkplug.CMP_HOST,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)317","Tag":null,"Text":"(string)                CmpLog.LogClass.LOG_INFO,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)312","Tag":null,"Text":"(string)                'MQTT Client SetBroker KeepAlive: %s (sec)',"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)313","Tag":null,"Text":"(string)                TO_STRING( _keepAlive ) );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)45","Tag":null,"Text":"(string)SetBroker := TRUE;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)279","Tag":null,"Text":"(string)/// "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)280","Tag":null,"Text":"(string)/// Set Broker Adress, port and keepalive time"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)281","Tag":null,"Text":"(string)/// Returns TRUE when finished"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)282","Tag":null,"Text":"(string)/// "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)283","Tag":null,"Text":"(string)/// The keepalive timeout value is set by the client when it connects. A typical value might be 60 (seconds). "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)284","Tag":null,"Text":"(string)/// This means that the MQTT client is expected to send an MQTT packet at least once every 60 seconds."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)285","Tag":null,"Text":"(string)/// If no other packet is sent, then a PINGREQ can be used, to which a response is expected (PINGRESP). "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)286","Tag":null,"Text":"(string)/// The intention is to discover \"dead\" TCP connections, which can, under certain circumstances, accept writes for some time after the connection has been broken."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)287","Tag":null,"Text":"(string)/// "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)288","Tag":null,"Text":"(string)/// example ::"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)289","Tag":null,"Text":"(string)/// SetBroker(sUrl := 'broker.hivemq.com', "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)290","Tag":null,"Text":"(string)/// \t\tuiPort := 1833, "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)291","Tag":null,"Text":"(string)/// \t\tuiKeepAlive := 60);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)292","Tag":null,"Text":"(string)/// "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)293","Tag":null,"Text":"(string)METHOD SetBroker : BOOL"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)294","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)295","Tag":null,"Text":"(string)    sUrl        : T_MaxString; // The URL of the broker we want to connect to, e.g.: 'test.mosquitto.org'. The URL cannot be longer then 255 characters."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)296","Tag":null,"Text":"(string)    uiPort      : UINT;        // The broker Port e.g: 1883"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)297","Tag":null,"Text":"(string)    uiKeepAlive : UINT;        // The KeepAlive time default 60 sec. ATTENTION: The ClientPingInterval == KeepAliveTime"}},{"@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"}