mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-15 16:25:43 +00:00
Adjusted retry delay on prices
This commit is contained in:
parent
9d902c63de
commit
f8cb9d187f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user