00_ZWDongle: neighborList option Name rewording (Forum #43735)

git-svn-id: https://svn.fhem.de/fhem/trunk@10029 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-11-28 11:25:05 +00:00
parent 0467170683
commit a2f99f853d

View File

@ -343,10 +343,10 @@ ZWDongle_Get($@)
if($cmd eq "neighborList") { if($cmd eq "neighborList") {
my @b; 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; @b = grep(!/includeDead/i, @a); my $wDead = (@b != @a); @a = @b;
$gets{neighborList} = "80%02x".($wDead ? "01":"00").($noRep ? "01":"00"); $gets{neighborList} = "80%02x".($wDead ? "00":"01").($onlyRep ? "01":"00");
return "Usage: get $name $cmd [noRepeater] [includeDead] nodeId" return "Usage: get $name $cmd [onlyRep] [includeDead] nodeId"
if(int(@a) != 1); if(int(@a) != 1);
} }
@ -954,10 +954,11 @@ ZWDongle_parseNeighborList($$)
return different controller specific information. Needed by developers return different controller specific information. Needed by developers
only. </li> only. </li>
<li>neighborList [noRepeater] [includeDead] nodeId<br> <li>neighborList [onlyRep] [includeDead] nodeId<br>
return data for the decimal nodeId. return data for the decimal nodeId.<br>
With noRepeater the result will exclude nodes with repeater functionality. With onlyRep the result will include only nodes with repeater
With includeDead the result will exclude nodes believed to be unreachable. functionality.<br>
With includeDead the result will include nodes believed to be unreachable.
</li> </li>
<li>nodeInfo<br> <li>nodeInfo<br>