2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 12:46:03 +00:00

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") {
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. </li>
<li>neighborList [noRepeater] [includeDead] nodeId<br>
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.
<li>neighborList [onlyRep] [includeDead] nodeId<br>
return data for the decimal nodeId.<br>
With onlyRep the result will include only nodes with repeater
functionality.<br>
With includeDead the result will include nodes believed to be unreachable.
</li>
<li>nodeInfo<br>