4
0
Fork 0
mirror of https://github.com/zzzzDev4/IAS-Better-Tea.git synced 2025-04-21 07:31:20 +02:00

moved end of animation behind all requests

This commit is contained in:
zzzz 2024-06-26 22:54:07 +02:00
parent 30bba45a58
commit 25765a179f

View file

@ -96,7 +96,6 @@ void setup()
teaNet.init(ssid, password); teaNet.init(ssid, password);
smartDisplay.playTeaAnimationPartTwo(32, "", "Success!", "", "");
// load config // load config
JSONVar result = teaNet.httpsGETRequest(shuttleServer + "/configuration"); JSONVar result = teaNet.httpsGETRequest(shuttleServer + "/configuration");
@ -112,6 +111,8 @@ void setup()
feedbackTimeoutSeconds = result["feedback_timeout"]; feedbackTimeoutSeconds = result["feedback_timeout"];
} }
smartDisplay.playTeaAnimationPartTwo(32, "", "Success!", "", "");
smartDisplay.playTeaAnimation(); smartDisplay.playTeaAnimation();
delay(250); delay(250);
@ -180,6 +181,7 @@ void loop()
{ {
smartDisplay.playTeaAnimationPartOne(32, "", "Loading...", "", ""); smartDisplay.playTeaAnimationPartOne(32, "", "Loading...", "", "");
Serial.println(currentTea.m_rfidCode);
JSONVar result = teaNet.httpsGETRequest(shuttleServer + "/tea-by-rfid/" + currentTea.m_rfidCode); JSONVar result = teaNet.httpsGETRequest(shuttleServer + "/tea-by-rfid/" + currentTea.m_rfidCode);
CATCH_NET_FAILURE(result, "GET FAILED") CATCH_NET_FAILURE(result, "GET FAILED")