diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-07-04 15:57:56 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-07-04 15:57:56 +0300 |
| commit | fdf45caba5c70e4a368ab5fc62398ac3cccc697c (patch) | |
| tree | c60b9c924b085ff8af3f614af22b852dd3b7c22a /Software/Stubs Collection/stubs/StubHeatingTestPollResponse.cs | |
| parent | 1246a201b4600899b4e11243ffb9ff300674750d (diff) | |
| download | Tango-fdf45caba5c70e4a368ab5fc62398ac3cccc697c.tar.gz Tango-fdf45caba5c70e4a368ab5fc62398ac3cccc697c.zip | |
Stubs collection
Diffstat (limited to 'Software/Stubs Collection/stubs/StubHeatingTestPollResponse.cs')
| -rw-r--r-- | Software/Stubs Collection/stubs/StubHeatingTestPollResponse.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/StubHeatingTestPollResponse.cs b/Software/Stubs Collection/stubs/StubHeatingTestPollResponse.cs new file mode 100644 index 000000000..64595ea91 --- /dev/null +++ b/Software/Stubs Collection/stubs/StubHeatingTestPollResponse.cs @@ -0,0 +1,22 @@ +using System; +using System.Text; +using System.Linq; +using System.Drawing; +using System.Diagnostics; +using System.Windows.Forms; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using Tango.PMR.Stubs; +using Tango.Stubs.UI; + +public void OnExecute(StubManager stubManager) +{ + int i=0; + stubManager.RunContinuous<StubHeatingTestPollResponse>("StubHeatingTestPollRequest",(response1) => + { +// stubManager.WriteLine (String.Format("Data, {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}",++i,response1.Zone1Temp,response1.Zone2Temp,response1.Heater1Active,response1.Heater2Active,response1.Heater1Percentage,response1.Heater2Percentage,response1.InfoMessage)); + stubManager.WriteLine (String.Format("Data, {0}, {1}, {2}, {3}, {4}, {5}",++i,response1.Zone1Temp,response1.Zone2Temp,response1.Heater1Percentage,response1.Heater2Percentage,response1.InfoMessage)); + + },0); +}
\ No newline at end of file |
