From c6a97fbedd7bb387558e239800f198d20750e412 Mon Sep 17 00:00:00 2001 From: hexenmeister Date: Thu, 7 Mar 2019 20:18:23 +0000 Subject: [PATCH] fix: Anpassung fuer MQTT2* git-svn-id: https://svn.fhem.de/fhem/trunk@18821 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MQTT_GENERIC_BRIDGE.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/10_MQTT_GENERIC_BRIDGE.pm b/fhem/FHEM/10_MQTT_GENERIC_BRIDGE.pm index 9a846e4a4..fe84a79bd 100644 --- a/fhem/FHEM/10_MQTT_GENERIC_BRIDGE.pm +++ b/fhem/FHEM/10_MQTT_GENERIC_BRIDGE.pm @@ -30,6 +30,10 @@ # # CHANGE LOG # +# 07.03.2019 1.1.7 +# fix : Anpassung fuer MQTT2* +# (https://forum.fhem.de/index.php?topic=98249.new#new) +# # 09.02.2019 1.1.6 # bugfix : Unterstuetzung von Variablen ($device, $reading, $name, $topic) # in publish-expression @@ -315,7 +319,7 @@ use warnings; #my $DEBUG = 1; my $cvsid = '$Id$'; -my $VERSION = "version 1.1.6 by hexenmeister\n$cvsid"; +my $VERSION = "version 1.1.7 by hexenmeister\n$cvsid"; my %sets = ( ); @@ -2609,6 +2613,13 @@ sub Parse($$) { #Log3($iodev->{NAME},1,"MQTT_GENERIC_BRIDGE: Parse: IODev: $ioname"); #Log3("XXX",1,"MQTT_GENERIC_BRIDGE: Parse: $msg"); + # no support for autocreate + #my $autocreate = "no"; + if($msg =~ m/^autocreate=([^\0]+)\0(.*)$/s) { + #$autocreate = $1; + $msg = $2; + } + #my ($cid, $topic, $value) = split(":", $msg, 3); my ($cid, $topic, $value) = split("\0", $msg, 3);