mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
00_ZWDongle.pm: revert wrong checkin
git-svn-id: https://svn.fhem.de/fhem/trunk@15485 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9195d9e5f9
commit
be30ce213f
@ -58,7 +58,6 @@ my %sets = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
my %gets = (
|
my %gets = (
|
||||||
"backgroundRSSI" => "3b", # GET_BACKGROUND_RSSI
|
|
||||||
"caps" => "07", # SERIAL_API_GET_CAPABILITIES
|
"caps" => "07", # SERIAL_API_GET_CAPABILITIES
|
||||||
"ctrlCaps" => "05", # ZW_GET_CONTROLLER_CAPS
|
"ctrlCaps" => "05", # ZW_GET_CONTROLLER_CAPS
|
||||||
"homeId" => "20", # MEMORY_GET_ID
|
"homeId" => "20", # MEMORY_GET_ID
|
||||||
@ -562,26 +561,6 @@ ZWDongle_Get($@)
|
|||||||
push @list, ("at ".($f==1 ? "9.6": ($f==2 ? "40":"100"))."kbps")
|
push @list, ("at ".($f==1 ? "9.6": ($f==2 ? "40":"100"))."kbps")
|
||||||
if(@list && $f =~ m/[123]/);
|
if(@list && $f =~ m/[123]/);
|
||||||
$msg = (@list ? join(" ", @list) : "N/A");
|
$msg = (@list ? join(" ", @list) : "N/A");
|
||||||
|
|
||||||
} elsif($cmd eq "backgroundRSSI") { ############################
|
|
||||||
my @list;
|
|
||||||
my $i=0;
|
|
||||||
for(my $off=4; $off<10; $off+=2) {
|
|
||||||
my $dec = hex(substr($msg, $off, 2));
|
|
||||||
if ($dec == 127 || $dec == 0) {
|
|
||||||
push @list, ("ch".($i+1).":N/A");
|
|
||||||
} elsif($dec == 126) {
|
|
||||||
push @list, ("ch".($i+1).":aboveMaxPower");
|
|
||||||
} elsif($dec == 125) {
|
|
||||||
push @list, ("ch".($i+1).":belowReceiverSensitivity");
|
|
||||||
} elsif($dec > 161 && $dec < 225) {
|
|
||||||
push @list, ("ch".($i+1).":".unpack('c', pack('C', $dec))." dBm");
|
|
||||||
} else {
|
|
||||||
push @list, ("ch".($i+1).":reservedValue");
|
|
||||||
}
|
|
||||||
$i++
|
|
||||||
}
|
|
||||||
$msg = join(" ", @list);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmd .= "_".join("_", @a) if(@a);
|
$cmd .= "_".join("_", @a) if(@a);
|
||||||
@ -1202,8 +1181,9 @@ ZWDongle_Ready($)
|
|||||||
return the six hex-digit homeId of the controller.
|
return the six hex-digit homeId of the controller.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>backgroundRSSI<br>
|
<li>isFailedNode <device><br>
|
||||||
query the measured RSSI on the Z-Wave network
|
return if a node is stored in the failed node list. <device> is
|
||||||
|
either device name or decimal nodeId.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>caps, ctrlCaps, version<br>
|
<li>caps, ctrlCaps, version<br>
|
||||||
@ -1211,11 +1191,6 @@ ZWDongle_Ready($)
|
|||||||
only.
|
only.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>isFailedNode <device><br>
|
|
||||||
return if a node is stored in the failed node list. <device> is
|
|
||||||
either device name or decimal nodeId.
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>neighborList [excludeDead] [onlyRep] <device><br>
|
<li>neighborList [excludeDead] [onlyRep] <device><br>
|
||||||
return neighborList of the <device>.<br>
|
return neighborList of the <device>.<br>
|
||||||
<device> is either device name or decimal nodeId.<br>
|
<device> is either device name or decimal nodeId.<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user