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

10_MQTT2_DEVICE.pm: accept multiline JSON (Forum #90145)

git-svn-id: https://svn.fhem.de/fhem/trunk@18057 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-12-26 11:06:41 +00:00
parent 2eed1e9d2d
commit f200d34d31

View File

@ -168,7 +168,7 @@ MQTT2_DEVICE_Parse($$)
my $cidArr = $modules{MQTT2_DEVICE}{defptr}{cid}{$newCid};
return if(!$cidArr);
my $add;
if($value =~ m/^{.*}$/) {
if($value =~ m/^{.*}$/s) {
my $ret = json2nameValue($value);
if(keys %{$ret}) {
$topic =~ m,.*/([^/]+),;