This commit is contained in:
Roland Drabesch
2023-08-02 16:45:17 +02:00
parent 7843225499
commit c64b0d901b
3 changed files with 18 additions and 14 deletions
+7 -6
View File
@@ -13,10 +13,10 @@ namespace TempFlansh
[STAThread]
private static void Main()
{
//Console.WriteLine("Comport");
//short cport = short.Parse(Console.ReadLine());
//var ap = TempHelper.UniversalOpenCom(cport, 4800, 8, 0, 0);
//var helper = new TempHelper();
Console.WriteLine("Comport");
short cport = short.Parse(Console.ReadLine());
var ap = TempHelper.UniversalOpenCom(cport, 4800, 8, 0, 0);
var helper = new TempHelper();
//var filename = $"{DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")}_temp.log";
////while (true)
////{
@@ -50,8 +50,9 @@ namespace TempFlansh
while (pipeServer.IsConnected)
{
sw.WriteLine("19.0");
//sw.WriteLine(helper.ReadCurrentDisplayValue().ToString());
//sw.WriteLine("19.0");
sw.WriteLine(helper.ReadCurrentDisplayValue().ToString());
Console.WriteLine(helper.ReadCurrentDisplayValue().ToString());
Thread.Sleep(500);
}