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 cacad27bc5
commit ee2c5df7ef

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/);
}