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:
parent
026ecff92c
commit
45d14341f3
@ -342,6 +342,7 @@ MQTT2_CLIENT_Read($@)
|
|||||||
$val = "" if(!defined($val));
|
$val = "" if(!defined($val));
|
||||||
my $ac = AttrVal($name, "autocreate", undef) ? "autocreate:":"";
|
my $ac = AttrVal($name, "autocreate", undef) ? "autocreate:":"";
|
||||||
my $cid = $hash->{clientId};
|
my $cid = $hash->{clientId};
|
||||||
|
$tp =~ s/:/_/g; # 96608
|
||||||
Dispatch($hash, "$ac$cid:$tp:$val", undef, !$ac);
|
Dispatch($hash, "$ac$cid:$tp:$val", undef, !$ac);
|
||||||
|
|
||||||
my $re = AttrVal($name, "rawEvents", undef);
|
my $re = AttrVal($name, "rawEvents", undef);
|
||||||
|
@ -419,6 +419,7 @@ MQTT2_SERVER_doPublish($$$$;$)
|
|||||||
|
|
||||||
my $serverName = $server->{NAME};
|
my $serverName = $server->{NAME};
|
||||||
my $cid = $src->{cid};
|
my $cid = $src->{cid};
|
||||||
|
$tp =~ s/:/_/g; # 96608
|
||||||
if(defined($cid) || # "real" MQTT client
|
if(defined($cid) || # "real" MQTT client
|
||||||
AttrVal($serverName, "rePublish", undef)) {
|
AttrVal($serverName, "rePublish", undef)) {
|
||||||
$cid = $src->{NAME} if(!defined($cid));
|
$cid = $src->{NAME} if(!defined($cid));
|
||||||
|
Loading…
Reference in New Issue
Block a user