mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
MQTT2_SERVER: revert ignoreRegexp changes (Forum #26742)
git-svn-id: https://svn.fhem.de/fhem/trunk@26751 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4cba877dd1
commit
fbd8232b3c
@ -541,10 +541,7 @@ MQTT2_SERVER_doPublish($$$$;$)
|
||||
$val = "" if(!defined($val));
|
||||
$src = $server if(!defined($src));
|
||||
my $now = gettimeofday();
|
||||
|
||||
my $serverName = $server->{NAME};
|
||||
my $ir = AttrVal($serverName, "ignoreRegexp", undef);
|
||||
return if(defined($ir) && "$tp:$val" =~ m/$ir/);
|
||||
|
||||
if($retain && AttrVal($serverName, "respectRetain", $featurelevel <= 6.1)) {
|
||||
if(!defined($val) || $val eq "") {
|
||||
@ -566,6 +563,9 @@ MQTT2_SERVER_doPublish($$$$;$)
|
||||
MQTT2_SERVER_sendto($server, $defs{$clName}, $tp, $val);
|
||||
}
|
||||
|
||||
my $ir = AttrVal($serverName, "ignoreRegexp", undef);
|
||||
return if(defined($ir) && "$tp:$val" =~ m/$ir/);
|
||||
|
||||
my $cid = $src->{cid};
|
||||
$tp =~ s/:/_/g if(AttrVal($serverName, "topicConversion", 1)); # 96608
|
||||
if(defined($cid) || # "real" MQTT client
|
||||
@ -874,10 +874,7 @@ MQTT2_SERVER_ReadDebug($$)
|
||||
|
||||
<a id="MQTT2_SERVER-attr-ignoreRegexp"></a>
|
||||
<li>ignoreRegexp<br>
|
||||
if $topic:$message matches ignoreRegexp, then it will be silently
|
||||
ignored. Such messages are not distributed to connected MQTT clients,
|
||||
are not stored (if retain is set), and are not dispatched in FHEM for
|
||||
further processing.
|
||||
if $topic:$message matches ignoreRegexp, then it will be silently ignored.
|
||||
</li>
|
||||
|
||||
<a id="MQTT2_SERVER-attr-keepaliveFactor"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user