1 | {"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)916522a6-da6b-4b85-a0dc-c0970446aafe","ParentGuid":"(Guid)6af36517-56a3-4fb4-8d90-09cffa529a21","Name":"(string)Edge2","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)6f9dac99-8de1-4efc-8465-68ac443b7d08","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":"6f9dac99","@Value":{"SpecialFunc":{"@Type":"0db3d7bb:Enum","@Value":"None"},"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)IF Init THEN\n AddAllMetrics();\n Scenario( TestScenario := g_example_settings.TestScenario );\n GenerateDataPeriod := UINT_TO_TIME( Scenario.publishPeriod - 250 ); // Now we surely change the data before sending it\n Init := FALSE;\nEND_IF\n\nGenerateDataTimer( IN := NOT GenerateDataTimer.Q,\n PT := GenerateDataPeriod,\n ET => GenerateDataElapsed );\n\nIF GenerateDataTimer.Q THEN\n GenerateEoNData();\n GenerateDeviceData();\nEND_IF\n\nTON_DelayStartup( IN := TRUE );\nIF NOT Scenario.StillGettingClientCertificate AND TON_DelayStartup.Q THEN\n EoN( Connect := Connect,\n ServerUrl := Scenario.ServerUrl,\n ServerPort := Scenario.ServerPort,\n PrimaryHostID := g_example_settings.PrimaryHostID1,\n NodeName := g_example_settings.EdgeName2, \n GroupId := g_example_settings.GroupID,\n KeepAlive := Scenario.KeepAlive,\n CleanSession := Scenario.CleanSession,\n Username := Scenario.Username,\n Password := Scenario.Password,\n UseTLS := Scenario.UseTLS,\n hCert := Scenario.hCert,\n UseAliases := UseAliases,\n PingInterval := PingInterval,\n CommunicationMode := Scenario.CommunicationMode,\n HttpProxySettings := HttpProxySettings,\n publishPeriod := Scenario.publishPeriod,\n // Uncomment this for TLS usage and please alter the initialisation of myTLSContext\n // ITLSContextProvider := ItfTLSContext, // We provide a reference to an instance of TLSContext\n IASyncPropertyProvider :=,\n SessionState => EoNConnectionState,\n NumberOfDevices => NumberOfDevices );\nELSIF Scenario.StillGettingClientCertificate THEN\n //The below method creates a Client Certificate for you\n //It generates a CSR and sends it to test.mosquitto.org to be signed\n Scenario.AdditionalStepsToRegisterAClientCertificateWithtest_mosquitto_org();\nEND_IF;\n\nIF PlugIt THEN\n ItfEdge := EoN;\nELSE\n ItfEdge := 0;\nEND_IF\n\nMyDevice1( DeviceName := \"Device1\",\n DeviceHealthy := Device1Healthy,\n ItfEdge := ItfEdge,\n PluggedIntoEoN =>,\n SessionState => MyDevice1State,\n publishPeriod := Scenario.publishPeriod );\n\nMyDevice2( DeviceName := \"Device2\",\n DeviceHealthy := Device2Healthy,\n ItfEdge := ItfEdge,\n PluggedIntoEoN =>,\n SessionState => MyDevice2State,\n publishPeriod := Scenario.publishPeriod );\n\nMyDevice3( DeviceName := \"Device3\",\n DeviceHealthy := Device3Healthy,\n ItfEdge := ItfEdge,\n PluggedIntoEoN =>,\n SessionState => MyDevice3State,\n publishPeriod := Scenario.publishPeriod );","LineInfoPersistence":"(string)916522a6-da6b-4b85-a0dc-c0970446aafe_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)PROGRAM Edge2\nVAR\n Init : BOOL := TRUE;\n EoN : SPEdge.FB_Edge;\n Connect : BOOL := TRUE; \n EoNConnectionState : SPStack.SparkplugSessionStateType;\n UseAliases : BOOL := TRUE;\n PingInterval : TIME := T#30s; // Ping interval for TCP and Websocket mode, default interval = T#2s\n CommunicationMode : SPEdge.MQTT.COMMUNICATION_MODE := SPEdge.MQTT.COMMUNICATION_MODE.TCP; // Choose either TCP or WebSockets\n WebSocketUrl : STRING(1024) := '';\n HttpProxySettings : SPEdge.MQTT.WEB_SOCKET.HttpProxySettings; // Contains Proxy- Server, Port, User and Password settings \n NumberOfDevices : UDINT;\n MyDevice1 : SPEdge.FB_Device;\n Device1Healthy : BOOL := FALSE;\n MyDevice2 : SPEdge.FB_Device;\n Device2Healthy : BOOL := FALSE;\n MyDevice3 : SPEdge.FB_Device;\n Device3Healthy : BOOL := FALSE;\n MyDevice1State : SPStack.SparkplugSessionStateType;\n MyDevice2State : SPStack.SparkplugSessionStateType;\n MyDevice3State : SPStack.SparkplugSessionStateType;\n PlugIt : BOOL := TRUE;\n ItfEdge : SPEdge.IEdge := EoN;\n GenerateDataPeriod : TIME;\n GenerateDataElapsed : TIME;\n GenerateDataTimer : TON;\n Str : ChangingString;\n TimeStamp : SPStack.T_DateTime;\n TON_DelayStartup : TON := (PT := T#5S); \nEND_VAR","LineInfoPersistence":"(string)916522a6-da6b-4b85-a0dc-c0970446aafe_Decl_LineIds"}}}},"UniqueIdGenerator":"(string)5351","POULevel":{"@Type":"8e575c5b:Enum","@Value":"Standard"},"ChildObjectGuids":{"@Type":"ArrayList:IList","@Value":[]},"AddAttributeSubsequent":"(bool)False"}},"TypeInfos":{"0db3d7bb":"{0db3d7bb-cde0-4416-9a7b-ce49a0124323}","3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","6f9dac99":"{6f9dac99-8de1-4efc-8465-68ac443b7d08}","8e575c5b":"{8e575c5b-1d37-49c6-941b-5c0ec7874787}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","ArrayList":"System.Collections.ArrayList","bool":"System.Boolean","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","string":"System.String"}}},"FormatVersion":"1.0"} |