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:
parent
30bba45a58
commit
25765a179f
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Reference in a new issue