mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-26 04:07:57 +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 {
|
} else {
|
||||||
lastError = status;
|
lastError = status;
|
||||||
if(status == 429) {
|
if(status == 429) {
|
||||||
nextFetchDelayMinutes = 60;
|
nextFetchDelayMinutes = 15;
|
||||||
} else if(status == 404) {
|
} else if(status == 404) {
|
||||||
nextFetchDelayMinutes = 180;
|
nextFetchDelayMinutes = 60;
|
||||||
} else {
|
} else {
|
||||||
nextFetchDelayMinutes = 30;
|
nextFetchDelayMinutes = 30;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user