2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

76_SMAPortal: contrib 2.7.2

git-svn-id: https://svn.fhem.de/fhem/trunk@22068 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-05-29 15:41:18 +00:00
parent b086c5035f
commit 767722d868

View File

@ -971,9 +971,10 @@ sub ParseData { ## no critic
my $max = AttrVal($name, "getDataRetries", 1);
my $act = $max - $hash->{HELPER}{RETRIES}; # Index aktueller Wiederholungsversuch
delcookiefile ($hash, 1) if($max - $act <= 1); # Schwellenwert erreicht ($max-1 Leseversuche) -> Cookie File löschen
$hash->{HELPER}{RETRIES} -= 1;
delcookiefile ($hash, 1) if($max - $act <= 1); # Schwellenwert erreicht ($max-1 Leseversuche) -> Cookie File löschen
InternalTimer(gettimeofday()+3, "FHEM::SMAPortal::retrygetdata", $hash, 0);
return;
}
@ -1807,7 +1808,7 @@ sub analyzeLivedata { #
my $name = $hash->{NAME};
my ($reread,$retry) = (0,0);
my $max = AttrVal($name, "getDataRetries", 1);
my $max = AttrVal($name, "getDataRetries", 3);
my $act = $max - $hash->{HELPER}{RETRIES}; # Index aktueller Wiederholungsversuch
my $attstr = "Attempts read data again ... ($act of $max)";