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

00_MQTT2_CLIENT.pm/00_MQTT2_SERVER.pm: change : to _ in topic (Forum #96608)

git-svn-id: https://svn.fhem.de/fhem/trunk@18440 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-01-28 10:23:20 +00:00
parent 026ecff92c
commit 45d14341f3
2 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,7 @@ MQTT2_CLIENT_Read($@)
$val = "" if(!defined($val));
my $ac = AttrVal($name, "autocreate", undef) ? "autocreate:":"";
my $cid = $hash->{clientId};
$tp =~ s/:/_/g; # 96608
Dispatch($hash, "$ac$cid:$tp:$val", undef, !$ac);
my $re = AttrVal($name, "rawEvents", undef);

View File

@ -419,6 +419,7 @@ MQTT2_SERVER_doPublish($$$$;$)
my $serverName = $server->{NAME};
my $cid = $src->{cid};
$tp =~ s/:/_/g; # 96608
if(defined($cid) || # "real" MQTT client
AttrVal($serverName, "rePublish", undef)) {
$cid = $src->{NAME} if(!defined($cid));