mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
02aac5584d
commit
f48cb5c42f
@ -30,6 +30,11 @@
|
||||
#
|
||||
# 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
|
||||
# bugfix : Parse liefert [NEXT] nur, wenn onmessage wirklich ein array
|
||||
# geliefert hat, sonst ""
|
||||
@ -300,7 +305,7 @@ use warnings;
|
||||
|
||||
#my $DEBUG = 1;
|
||||
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 = (
|
||||
);
|
||||
@ -2569,7 +2574,8 @@ sub Parse($$) {
|
||||
#Log3($iodev->{NAME},1,"MQTT_GENERIC_BRIDGE: Parse: IODev: $ioname");
|
||||
#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");
|
||||
foreach my $dev (@instances) {
|
||||
|
Loading…
Reference in New Issue
Block a user