2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 23:09:26 +00:00

change: separator changed (ParseFn): ':' -> '\0'

https://forum.fhem.de/index.php?topic=96608


git-svn-id: https://svn.fhem.de/fhem/trunk@18464 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2019-01-30 21:57:55 +00:00
parent 02aac5584d
commit f48cb5c42f

View File

@ -30,6 +30,11 @@
# #
# CHANGE LOG # CHANGE LOG
# #
# 30.0ß1.2019 1.1.4
# change : Umstellung der Zeichentrenner bei 'Parse' von ':' auf '\0'
# wg. Problemen mit ':' in Topics (MQTT2*)
# https://forum.fhem.de/index.php?topic=96608
#
# 29.01.2019 1.1.3 # 29.01.2019 1.1.3
# bugfix : Parse liefert [NEXT] nur, wenn onmessage wirklich ein array # bugfix : Parse liefert [NEXT] nur, wenn onmessage wirklich ein array
# geliefert hat, sonst "" # geliefert hat, sonst ""
@ -300,7 +305,7 @@ use warnings;
#my $DEBUG = 1; #my $DEBUG = 1;
my $cvsid = '$Id$'; my $cvsid = '$Id$';
my $VERSION = "version 1.1.3 by hexenmeister\n$cvsid"; my $VERSION = "version 1.1.4 by hexenmeister\n$cvsid";
my %sets = ( my %sets = (
); );
@ -2569,7 +2574,8 @@ 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");
my ($cid, $topic, $value) = split(":", $msg, 3); #my ($cid, $topic, $value) = split(":", $msg, 3);
my ($cid, $topic, $value) = split("\0", $msg, 3);
my @instances = devspec2array("TYPE=MQTT_GENERIC_BRIDGE"); my @instances = devspec2array("TYPE=MQTT_GENERIC_BRIDGE");
foreach my $dev (@instances) { foreach my $dev (@instances) {