10_MQTT2_DEVICE.pm: handle empty cid in autocreate (Forum #122525)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24861 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-08-20 09:04:35 +00:00
parent 2ce2366634
commit 22b221474f

View File

@ -154,6 +154,7 @@ MQTT2_DEVICE_Parse($$)
}
my ($cid, $topic, $value) = split("\0", $msg, 3);
$cid = $iodev->{NAME} if($cid eq ""); # empty cid, #122525
return "" if(!defined($topic));
for my $step (1,2,3,4) {