mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
FHT: set default retrycount to 1, as suggested by Zrrronggg! (http://forum.fhem.de/index.php?topic=18233.new#new)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4538 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2b9f4ee1c1
commit
b04880f488
@ -372,7 +372,6 @@ FHT_Define($$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$modules{FHT}{defptr}{$a[2]} = $hash;
|
$modules{FHT}{defptr}{$a[2]} = $hash;
|
||||||
$attr{$a[0]}{retrycount} = 3;
|
|
||||||
|
|
||||||
#Log3 $a[0], 2, "Asking the FHT device $a[0]/$a[2] to send its data";
|
#Log3 $a[0], 2, "Asking the FHT device $a[0]/$a[2] to send its data";
|
||||||
#FHT_Set($hash, ($a[0], "report1", "255", "report2", "255"));
|
#FHT_Set($hash, ($a[0], "report1", "255", "report2", "255"));
|
||||||
@ -621,7 +620,7 @@ doSoftBuffer($)
|
|||||||
my $name = $h->{HASH}->{NAME};
|
my $name = $h->{HASH}->{NAME};
|
||||||
if($h->{NSENT}) {
|
if($h->{NSENT}) {
|
||||||
next if($now-$h->{SENDTIME} < $retryafter);
|
next if($now-$h->{SENDTIME} < $retryafter);
|
||||||
my $retry = $attr{$name}{retrycount};
|
my $retry = AttrVal($name, "retrycount", 1);
|
||||||
if($h->{NSENT} > $retry) {
|
if($h->{NSENT} > $retry) {
|
||||||
Log3 $name, 2, "$name set $h->{CMD}: ".
|
Log3 $name, 2, "$name set $h->{CMD}: ".
|
||||||
"no confirmation after $h->{NSENT} tries, giving up";
|
"no confirmation after $h->{NSENT} tries, giving up";
|
||||||
@ -960,7 +959,7 @@ getFhtBuffer($)
|
|||||||
resend commands <code>retrycount</code> times if after 240 seconds
|
resend commands <code>retrycount</code> times if after 240 seconds
|
||||||
no confirmation message is received from the corresponding FHT
|
no confirmation message is received from the corresponding FHT
|
||||||
device.<br>
|
device.<br>
|
||||||
Default is 3.</li><br>
|
Default is 1.</li><br>
|
||||||
|
|
||||||
<a name="minfhtbuffer"></a>
|
<a name="minfhtbuffer"></a>
|
||||||
<li>minfhtbuffer<br>
|
<li>minfhtbuffer<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user