mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-05 18:16:44 +00:00
00_ZWDongle.pm: excludeDead added to neighborList (Forum #43735)
git-svn-id: https://svn.fhem.de/fhem/trunk@10034 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6572ee3b70
commit
7596515649
@ -344,8 +344,9 @@ ZWDongle_Get($@)
|
|||||||
if($cmd eq "neighborList") {
|
if($cmd eq "neighborList") {
|
||||||
my @b;
|
my @b;
|
||||||
@b = grep(!/onlyRep/i, @a); my $onlyRep = (@b != @a); @a = @b;
|
@b = grep(!/onlyRep/i, @a); my $onlyRep = (@b != @a); @a = @b;
|
||||||
$gets{neighborList} = "80%02x01".($onlyRep ? "01":"00");
|
@b = grep(!/excludeDead/i, @a); my $exclDead = (@b != @a); @a = @b;
|
||||||
return "Usage: get $name $cmd [onlyRep] nodeId"
|
$gets{neighborList} = "80%02x".($exclDead ?"00":"01").($onlyRep ?"01":"00");
|
||||||
|
return "Usage: get $name $cmd [excludeDead] [onlyRep] nodeId"
|
||||||
if(int(@a) != 1);
|
if(int(@a) != 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user