00_ZWDongle.pm: excludeDead added to neighborList (Forum #43735)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10034 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user