2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

fix: Anpassung fuer MQTT2*

git-svn-id: https://svn.fhem.de/fhem/trunk@18821 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2019-03-07 20:18:23 +00:00
parent 232b6c7345
commit c6a97fbedd

View File

@ -30,6 +30,10 @@
# #
# CHANGE LOG # 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 # 09.02.2019 1.1.6
# bugfix : Unterstuetzung von Variablen ($device, $reading, $name, $topic) # bugfix : Unterstuetzung von Variablen ($device, $reading, $name, $topic)
# in publish-expression # in publish-expression
@ -315,7 +319,7 @@ use warnings;
#my $DEBUG = 1; #my $DEBUG = 1;
my $cvsid = '$Id$'; 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 = ( my %sets = (
); );
@ -2609,6 +2613,13 @@ sub Parse($$) {
#Log3($iodev->{NAME},1,"MQTT_GENERIC_BRIDGE: Parse: IODev: $ioname"); #Log3($iodev->{NAME},1,"MQTT_GENERIC_BRIDGE: Parse: IODev: $ioname");
#Log3("XXX",1,"MQTT_GENERIC_BRIDGE: Parse: $msg"); #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(":", $msg, 3);
my ($cid, $topic, $value) = split("\0", $msg, 3); my ($cid, $topic, $value) = split("\0", $msg, 3);