buxfix : 'retain' change rolled back

git-svn-id: https://svn.fhem.de/fhem/trunk@23657 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister
2021-02-01 19:36:44 +00:00
parent 7b1205a019
commit 60361ae2dc

View File

@@ -30,6 +30,9 @@
#
# CHANGE LOG
#
# 01.02.2021 1.3.2
# buxfix : Rückname Änderung "retain bei MQTT2 ohne Funktion" wg. Irrtum
#
# 31.01.2021 1.3.1
# cleanup : Bereinigung der Konstruktionen wie my $... if / unless ...
# (patch von Beta-User)
@@ -394,7 +397,7 @@ use AttrTemplate;
#my $DEBUG = 1;
my $cvsid = '$Id$';
my $VERSION = "version 1.3.1 by hexenmeister\n$cvsid";
my $VERSION = "version 1.3.2 by hexenmeister\n$cvsid";
my %sets = (
);
@@ -2466,7 +2469,7 @@ sub doPublish($$$$$$$$) {
if (isIODevMQTT2($hash)){ #if ($hash->{+HELPER}->{+IO_DEV_TYPE} eq 'MQTT2_SERVER') {
# TODO: publish MQTT2
# TODO qos / retain ?
$topic ='-r $topic' if $retain;
$topic.=':r' if $retain;
IOWrite($hash, "publish", $topic.' '.$message);
readingsSingleUpdate($hash,"transmission-state","outgoing publish sent",1);
$hash->{+HELPER}->{+HS_PROP_NAME_OUTGOING_CNT}++;