10_MQTT2_DEVICE.pm: add first topic value when autocreate active
git-svn-id: https://svn.fhem.de/fhem/trunk@17158 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -143,6 +143,7 @@ MQTT2_DEVICE_Parse($$)
|
||||
my $rl = AttrVal($nn, "readingList", "");
|
||||
$rl .= "\n" if($rl);
|
||||
CommandAttr(undef, "$nn readingList $rl$cid:$topic:.* $add");
|
||||
MQTT2_DEVICE_Parse($iodev, $msg);
|
||||
}, undef);
|
||||
return "UNDEFINED $nn MQTT2_DEVICE $cid" if(!$cidHash);
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user