bugfix: set publish

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2021-09-16 16:06:15 +00:00
parent 4ebf786df6
commit b0ddaeb535

View File

@ -221,6 +221,8 @@ sub Set($@) {
return Stop($hash) if $command eq 'disconnect';
return "unknown command $command" if $command ne 'publish';
shift(@a);
shift(@a);
my ($qos, $retain,$topic, $value) = parsePublishCmd(@a);
return 'missing parameters. usage: publish [qos:?] [retain:?] topic value1 [value2]...' if !$topic;
return "wrong parameter. topic may not be '#' or '+'" if ($topic eq '#' or $topic eq '+');