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 e1d5ac0784
commit b7bd46ae51

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,.*/([^/]+),;