mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
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:
parent
52561140bf
commit
77e116a625
@ -30,6 +30,9 @@
|
|||||||
#
|
#
|
||||||
# CHANGE LOG
|
# 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
|
# 31.01.2021 1.3.1
|
||||||
# cleanup : Bereinigung der Konstruktionen wie my $... if / unless ...
|
# cleanup : Bereinigung der Konstruktionen wie my $... if / unless ...
|
||||||
# (patch von Beta-User)
|
# (patch von Beta-User)
|
||||||
@ -394,7 +397,7 @@ use AttrTemplate;
|
|||||||
|
|
||||||
#my $DEBUG = 1;
|
#my $DEBUG = 1;
|
||||||
my $cvsid = '$Id$';
|
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 = (
|
my %sets = (
|
||||||
);
|
);
|
||||||
@ -2466,7 +2469,7 @@ sub doPublish($$$$$$$$) {
|
|||||||
if (isIODevMQTT2($hash)){ #if ($hash->{+HELPER}->{+IO_DEV_TYPE} eq 'MQTT2_SERVER') {
|
if (isIODevMQTT2($hash)){ #if ($hash->{+HELPER}->{+IO_DEV_TYPE} eq 'MQTT2_SERVER') {
|
||||||
# TODO: publish MQTT2
|
# TODO: publish MQTT2
|
||||||
# TODO qos / retain ?
|
# TODO qos / retain ?
|
||||||
$topic ='-r $topic' if $retain;
|
$topic.=':r' if $retain;
|
||||||
IOWrite($hash, "publish", $topic.' '.$message);
|
IOWrite($hash, "publish", $topic.' '.$message);
|
||||||
readingsSingleUpdate($hash,"transmission-state","outgoing publish sent",1);
|
readingsSingleUpdate($hash,"transmission-state","outgoing publish sent",1);
|
||||||
$hash->{+HELPER}->{+HS_PROP_NAME_OUTGOING_CNT}++;
|
$hash->{+HELPER}->{+HS_PROP_NAME_OUTGOING_CNT}++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user