2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

10_ZWave.pm: add parseHook for Dongle messages (Forum 72824)

git-svn-id: https://svn.fhem.de/fhem/trunk@14472 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-06-06 10:03:14 +00:00
parent 29e94ddaec
commit 22a0816c57

View File

@ -4444,6 +4444,15 @@ ZWave_Parse($$@)
return "";
}
foreach my $h (keys %zwave_parseHook) {
if("$cmd:$arg" =~ m/$h/) {
my $fn = $zwave_parseHook{$h};
delete $zwave_parseHook{$h};
$fn->($arg);
return "";
}
}
Log3 $ioName, 4, "$ioName unhandled ANSWER: $cmd $arg";
return "";
}