2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-25 09:49:20 +00:00

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

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

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) {