2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

00_MQTT2_SERVER.pm: add source-connection of the data as internal (Forum #124505)

git-svn-id: https://svn.fhem.de/fhem/trunk@25282 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-12-02 18:23:25 +00:00
parent 487a140b5c
commit e55997dbe4

View File

@ -506,7 +506,8 @@ MQTT2_SERVER_doPublish($$$$;$)
$ac = $ac eq "1" ? "simple" : ($ac eq "0" ? "no" : $ac); # backward comp.
$cid = AttrVal($serverName, "clientId", $cid);
Dispatch($server, "autocreate=$ac\0$cid\0$tp\0$val", undef, $ac eq "no");
my %addvals = (CONN => $src->{NAME});
Dispatch($server, "autocreate=$ac\0$cid\0$tp\0$val",\%addvals, $ac eq "no");
my $re = AttrVal($serverName, "rawEvents", undef);
DoTrigger($server->{NAME}, "$tp:$val") if($re && $tp =~ m/$re/);
}