dont try to sync if wifi is disconnected (just because whats the point really)
This commit is contained in:
parent
6a9976868b
commit
33db93deed
1 changed files with 31 additions and 30 deletions
|
@ -320,6 +320,7 @@ void handleData1Interrupt() {
|
|||
#endif
|
||||
vTaskDelay(pdMS_TO_TICKS(15000)); // Delay for 15 seconds
|
||||
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
Tinance2HttpClient httpClient;
|
||||
std::pair<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_readerinfo, "GET", "");
|
||||
String response = responsePair.first;
|
||||
|
@ -349,7 +350,7 @@ void handleData1Interrupt() {
|
|||
Serial.println("JSON Reader Mode: " + json["mode"].as<String>());
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue