mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-25 20:06:08 +00:00
Adjusted retry delay on prices
This commit is contained in:
@@ -236,9 +236,9 @@ bool EntsoeApi::retrieve(const char* url, Stream* doc) {
|
||||
} else {
|
||||
lastError = status;
|
||||
if(status == 429) {
|
||||
nextFetchDelayMinutes = 60;
|
||||
nextFetchDelayMinutes = 15;
|
||||
} else if(status == 404) {
|
||||
nextFetchDelayMinutes = 180;
|
||||
nextFetchDelayMinutes = 60;
|
||||
} else {
|
||||
nextFetchDelayMinutes = 30;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user