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