From a2f99f853d762445e9b2eceaf91e1a0cc6aa90c5 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 28 Nov 2015 11:25:05 +0000 Subject: [PATCH] 00_ZWDongle: neighborList option Name rewording (Forum #43735) git-svn-id: https://svn.fhem.de/fhem/trunk@10029 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_ZWDongle.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/00_ZWDongle.pm b/fhem/FHEM/00_ZWDongle.pm index 9f2c1e27d..f48f59626 100755 --- a/fhem/FHEM/00_ZWDongle.pm +++ b/fhem/FHEM/00_ZWDongle.pm @@ -343,10 +343,10 @@ ZWDongle_Get($@) if($cmd eq "neighborList") { my @b; - @b = grep(!/noRepeater/i, @a); my $noRep = (@b != @a); @a = @b; + @b = grep(!/onlyRep/i, @a); my $onlyRep = (@b != @a); @a = @b; @b = grep(!/includeDead/i, @a); my $wDead = (@b != @a); @a = @b; - $gets{neighborList} = "80%02x".($wDead ? "01":"00").($noRep ? "01":"00"); - return "Usage: get $name $cmd [noRepeater] [includeDead] nodeId" + $gets{neighborList} = "80%02x".($wDead ? "00":"01").($onlyRep ? "01":"00"); + return "Usage: get $name $cmd [onlyRep] [includeDead] nodeId" if(int(@a) != 1); } @@ -954,10 +954,11 @@ ZWDongle_parseNeighborList($$) return different controller specific information. Needed by developers only. -
  • neighborList [noRepeater] [includeDead] nodeId
    - return data for the decimal nodeId. - With noRepeater the result will exclude nodes with repeater functionality. - With includeDead the result will exclude nodes believed to be unreachable. +
  • neighborList [onlyRep] [includeDead] nodeId
    + return data for the decimal nodeId.
    + With onlyRep the result will include only nodes with repeater + functionality.
    + With includeDead the result will include nodes believed to be unreachable.
  • nodeInfo