4
0
Fork 0
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:
zzzz 2024-06-14 19:26:57 +02:00
parent bf7d8037c7
commit 11287e21e6

View file

@ -372,9 +372,9 @@ void loop()
JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload);
// now update steeping time for next use
currentTea.m_steepingSeconds += 10;
String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload);
currentTea.m_steepingSeconds -= 10;
String payload2 = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload2);
// catch possible failure
if (res == JSON.parse("{}"))
@ -403,9 +403,9 @@ void loop()
JSONVar res = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time-log/" + currentTea.m_id, payload);
// now update steeping time for next use
currentTea.m_steepingSeconds -= 10;
String payload = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload);
currentTea.m_steepingSeconds += 10;
String payload2 = teaNet.bundleSteepingTimeChange(currentTea.m_steepingSeconds);
JSONVar res2 = teaNet.httpsPOSTRequest(shuttleServer + "/tea-steeping-time/" + currentTea.m_id, payload2);
// catch possible failure
if (res == JSON.parse("{}"))