v0.0.8
This commit is contained in:
parent
ab69505b80
commit
f59704545b
1 changed files with 98 additions and 16 deletions
|
|
@ -23,12 +23,12 @@ ConfigInterface::ConfigInterface(QObject *parent)
|
|||
QJsonObject top = QJsonDocument::fromJson(data).object();
|
||||
QString max, min, alert, mode, url;
|
||||
bool flipbits;
|
||||
max = top["max_threshold"].toString();
|
||||
min = top["min_threshold"].toString();
|
||||
alert = top["alert_threshold"].toString();
|
||||
flipbits = top["flip_bits"].toBool();
|
||||
mode = top["mode"].toString();
|
||||
url = top["url"].toString();
|
||||
max = top["max_threshold"].toString("100");
|
||||
min = top["min_threshold"].toString("20");
|
||||
alert = top["alert_threshold"].toString("60");
|
||||
flipbits = top["flip_bits"].toBool(true);
|
||||
mode = top["mode"].toString("http");
|
||||
url = top["url"].toString("https://unrealdragon.in/server/waterlevel");
|
||||
setMax(max);
|
||||
setMin(min);
|
||||
setAlert(alert);
|
||||
|
|
|
|||
Loading…
Reference in a new issue