10_MQTT2_DEVICE.pm: convert json stuff to good reading name (Forum #110401)
git-svn-id: https://svn.fhem.de/fhem/trunk@21727 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -169,7 +169,7 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
if($ret && ref $ret eq "HASH") {
|
if($ret && ref $ret eq "HASH") {
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
foreach my $k (keys %{$ret}) {
|
foreach my $k (keys %{$ret}) {
|
||||||
readingsBulkUpdate($hash, $k, $ret->{$k});
|
readingsBulkUpdate($hash, makeReadingName($k), $ret->{$k});
|
||||||
my $msg = ($ret->{$k} ? $ret->{$k} : "");
|
my $msg = ($ret->{$k} ? $ret->{$k} : "");
|
||||||
push(@retData, "$k $msg");
|
push(@retData, "$k $msg");
|
||||||
checkForGet($hash, $k, $ret->{$k});
|
checkForGet($hash, $k, $ret->{$k});
|
||||||
|
|||||||
Reference in New Issue
Block a user