mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +00:00
MQTT2_SERVER: default for respectRetain is featurelevel <= 6.1 (Forum #130511)
git-svn-id: https://svn.fhem.de/fhem/trunk@26748 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c9fe0c1229
commit
39b3e875a2
@ -546,7 +546,7 @@ MQTT2_SERVER_doPublish($$$$;$)
|
||||
my $ir = AttrVal($serverName, "ignoreRegexp", undef);
|
||||
return if(defined($ir) && "$tp:$val" =~ m/$ir/);
|
||||
|
||||
if($retain && AttrVal($serverName, "respectRetain", undef)) {
|
||||
if($retain && AttrVal($serverName, "respectRetain", $featurelevel <= 6.1)) {
|
||||
if(!defined($val) || $val eq "") {
|
||||
delete($server->{retain}{$tp});
|
||||
} else {
|
||||
@ -909,9 +909,9 @@ MQTT2_SERVER_ReadDebug($$)
|
||||
<a id="MQTT2_SERVER-attr-respectRetain"></a>
|
||||
<li>respectRetain [1|0]<br>
|
||||
As storing messages with the retain flag can take up considerable space
|
||||
and it has no use in a FHEM only environment, it is by default disabled.
|
||||
Set this attribute to 1 if you have external devices relying on this
|
||||
feature.
|
||||
and it has no use in a FHEM only environment, it is by default disabled
|
||||
for featurelevel > 6.1. Set this attribute to 1 if you have external
|
||||
devices relying on this feature.
|
||||
</li>
|
||||
|
||||
<a id="MQTT2_SERVER-attr-SSL"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user