mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
FHEM2FHEM: add remote filtering of events (Forum: 36136)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8416 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e5e996baed
commit
c908dfdfdd
@ -266,7 +266,8 @@ FHEM2FHEM_OpenDev($$)
|
|||||||
DoTrigger($name, "CONNECTED") if($reopen);
|
DoTrigger($name, "CONNECTED") if($reopen);
|
||||||
syswrite($hash->{TCPDev}, $hash->{portpassword} . "\n")
|
syswrite($hash->{TCPDev}, $hash->{portpassword} . "\n")
|
||||||
if($hash->{portpassword});
|
if($hash->{portpassword});
|
||||||
my $msg = $hash->{informType} eq "LOG" ? "inform on" : "inform raw";
|
my $msg = $hash->{informType} eq "LOG" ?
|
||||||
|
"inform on $hash->{regexp}" : "inform raw";
|
||||||
syswrite($hash->{TCPDev}, $msg . "\n");
|
syswrite($hash->{TCPDev}, $msg . "\n");
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user