mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
bugfix: set publish
git-svn-id: https://svn.fhem.de/fhem/trunk@24981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3c24d904d9
commit
806469796f
@ -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 '+');
|
||||
|
Loading…
Reference in New Issue
Block a user