mirror of
https://github.com/zzzzDev4/IAS-Better-Tea.git
synced 2025-04-21 07:31:20 +02:00
small bugfixes
This commit is contained in:
parent
bf7d8037c7
commit
11287e21e6
1 changed files with 6 additions and 6 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -372,9 +372,9 @@ void loop()
|
||||||
JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload);
|
JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload);
|
||||||
|
|
||||||
// now update steeping time for next use
|
// now update steeping time for next use
|
||||||
currentTea.m_steepingSeconds += 10;
|
currentTea.m_steepingSeconds -= 10;
|
||||||
String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
|
String payload2 = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
|
||||||
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload);
|
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload2);
|
||||||
|
|
||||||
// catch possible failure
|
// catch possible failure
|
||||||
if (res == JSON.parse("{}"))
|
if (res == JSON.parse("{}"))
|
||||||
|
@ -403,9 +403,9 @@ void loop()
|
||||||
JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload);
|
JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload);
|
||||||
|
|
||||||
// now update steeping time for next use
|
// now update steeping time for next use
|
||||||
currentTea.m_steepingSeconds -= 10;
|
currentTea.m_steepingSeconds += 10;
|
||||||
String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
|
String payload2 = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
|
||||||
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload);
|
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload2);
|
||||||
|
|
||||||
// catch possible failure
|
// catch possible failure
|
||||||
if (res == JSON.parse("{}"))
|
if (res == JSON.parse("{}"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue