mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
bugfix: set publish
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4ebf786df6
commit
b0ddaeb535
@ -221,6 +221,8 @@ sub Set($@) {
|
|||||||
return Stop($hash) if $command eq 'disconnect';
|
return Stop($hash) if $command eq 'disconnect';
|
||||||
|
|
||||||
return "unknown command $command" if $command ne 'publish';
|
return "unknown command $command" if $command ne 'publish';
|
||||||
|
shift(@a);
|
||||||
|
shift(@a);
|
||||||
my ($qos, $retain,$topic, $value) = parsePublishCmd(@a);
|
my ($qos, $retain,$topic, $value) = parsePublishCmd(@a);
|
||||||
return 'missing parameters. usage: publish [qos:?] [retain:?] topic value1 [value2]...' if !$topic;
|
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 '+');
|
return "wrong parameter. topic may not be '#' or '+'" if ($topic eq '#' or $topic eq '+');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user