mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 17:12:32 +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:
parent
1fae94b555
commit
cd782fcb37
@ -154,6 +154,7 @@ MQTT2_DEVICE_Parse($$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
my ($cid, $topic, $value) = split("\0", $msg, 3);
|
my ($cid, $topic, $value) = split("\0", $msg, 3);
|
||||||
|
$cid = $iodev->{NAME} if($cid eq ""); # empty cid, #122525
|
||||||
return "" if(!defined($topic));
|
return "" if(!defined($topic));
|
||||||
for my $step (1,2,3,4) {
|
for my $step (1,2,3,4) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user