mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
MQTT2_SERVER: add respectRetain flag (Forum #130511)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@26747 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6b64023457
commit
c32cc64aed
@ -47,6 +47,7 @@ MQTT2_SERVER_Initialize($)
|
|||||||
keepaliveFactor
|
keepaliveFactor
|
||||||
rePublish:1,0
|
rePublish:1,0
|
||||||
rawEvents
|
rawEvents
|
||||||
|
respectRetain:1,0
|
||||||
sslVersion
|
sslVersion
|
||||||
sslCertPrefix
|
sslCertPrefix
|
||||||
topicConversion:0,1
|
topicConversion:0,1
|
||||||
@ -545,7 +546,7 @@ MQTT2_SERVER_doPublish($$$$;$)
|
|||||||
my $ir = AttrVal($serverName, "ignoreRegexp", undef);
|
my $ir = AttrVal($serverName, "ignoreRegexp", undef);
|
||||||
return if(defined($ir) && "$tp:$val" =~ m/$ir/);
|
return if(defined($ir) && "$tp:$val" =~ m/$ir/);
|
||||||
|
|
||||||
if($retain) {
|
if($retain && AttrVal($serverName, "respectRetain", undef)) {
|
||||||
if(!defined($val) || $val eq "") {
|
if(!defined($val) || $val eq "") {
|
||||||
delete($server->{retain}{$tp});
|
delete($server->{retain}{$tp});
|
||||||
} else {
|
} else {
|
||||||
@ -905,6 +906,14 @@ MQTT2_SERVER_ReadDebug($$)
|
|||||||
to the FHEM internal clients.
|
to the FHEM internal clients.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
|
<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.
|
||||||
|
</li>
|
||||||
|
|
||||||
<a id="MQTT2_SERVER-attr-SSL"></a>
|
<a id="MQTT2_SERVER-attr-SSL"></a>
|
||||||
<li>SSL<br>
|
<li>SSL<br>
|
||||||
Enable SSL (i.e. TLS). Note: after deleting this attribute FHEM must be
|
Enable SSL (i.e. TLS). Note: after deleting this attribute FHEM must be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user