From b2ff9481795b86d3ac6e6ee79d3022cd20f20c6d Mon Sep 17 00:00:00 2001 From: hexenmeister Date: Sat, 17 Nov 2018 21:15:39 +0000 Subject: [PATCH] update: compatibility to mqtt2.* git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17768 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MQTT_GENERIC_BRIDGE.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FHEM/10_MQTT_GENERIC_BRIDGE.pm b/FHEM/10_MQTT_GENERIC_BRIDGE.pm index c682b71ad..c6b25a806 100644 --- a/FHEM/10_MQTT_GENERIC_BRIDGE.pm +++ b/FHEM/10_MQTT_GENERIC_BRIDGE.pm @@ -29,6 +29,9 @@ ############################################################################### # # CHANGE LOG +# +# 17.11.2018 1.0.0 +# change : IOWrite Parameter angepasst. # # 15.11.2018 1.0.0 # fix : Pruefung im Parse auf das richtige IODev gefixt (mqtt2). @@ -2078,7 +2081,7 @@ sub doPublish($$$$$$$$) { # TODO: publish MQTT2 # TODO qos / retain ? $topic.=':r' if $retain; - IOWrite($hash, $topic, $message); + IOWrite($hash, "publish", $topic.' '.$message); readingsSingleUpdate($hash,"transmission-state","outgoing publish sent",1); $hash->{+HELPER}->{+HS_PROP_NAME_OUTGOING_CNT}++; readingsSingleUpdate($hash,"outgoing-count",$hash->{+HELPER}->{+HS_PROP_NAME_OUTGOING_CNT},1);