Skip to content
Snippets Groups Projects
Commit d797dae1 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Added sensors to settings

parent ed1bf62d
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -35,6 +35,9 @@ namespace Wetterstation
tbCity.Text = WeatherstationSettings.city;
txtPlz.Text = WeatherstationSettings.plz;
tbLngCode.Text = WeatherstationSettings.lngCode;
tbNode1.Text = WeatherstationSettings.node1Id;
tbNode1SensorInnen.Text = WeatherstationSettings.node1Innen;
tbNode1SensorAussen.Text = WeatherstationSettings.node1Aussen;
}
private String generateId()
......@@ -116,6 +119,9 @@ namespace Wetterstation
mqttSettings.plz = txtPlz.Text;
mqttSettings.city = tbCity.Text;
mqttSettings.lngCode = tbLngCode.Text;
mqttSettings.node1Id = tbNode1.Text;
mqttSettings.node1Innen = tbNode1SensorInnen.Text;
mqttSettings.node1Aussen = tbNode1SensorAussen.Text;
Console.WriteLine("Speichere Settings ");
SqliteDataAccess.SaveWeatherstationSettings(mqttSettings);
......
......@@ -25,5 +25,11 @@
public string city { get; set; }
public string lngCode { get; set; }
public string node1Id { get; set; }
public string node1Innen { get; set; }
public string node1Aussen { get; set; }
}
}
......@@ -35,7 +35,10 @@ namespace Wetterstation
"frontendId = @frontendId, " +
"lngCode = @lngCode, " +
"plz = @plz, " +
"city = @city;",
"city = @city, " +
"node1Id = @node1Id, " +
"node1Innen = @node1Innen, " +
"node1Aussen = @node1IdAussen;",
mqttSettings);
}
}
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment