ADD: set defaultTopic as attribute

- the attribute has already been there
- just added documentation

CLOSES: #6
TIME: 10m
This commit is contained in:
Dominik Meyer 2024-03-01 21:00:08 +01:00
parent 73c60ae498
commit 0643b3af38
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

View File

@ -113,7 +113,8 @@ sub NTFY_CLIENT_Initialize
$hash->{AttrFn} = 'NTFY_Attr'; $hash->{AttrFn} = 'NTFY_Attr';
$hash->{ParseFn} = 'NTFY_Parse'; $hash->{ParseFn} = 'NTFY_Parse';
$hash->{DeleteFn} = 'NTFY_Delete'; $hash->{DeleteFn} = 'NTFY_Delete';
$hash->{AttrList} = "defaultTopic " $hash->{AttrList} = "defaultTopic " .
""
. $readingFnAttributes; . $readingFnAttributes;
} }
@ -372,6 +373,8 @@ sub NTFY_Set
sub NTFY_Attr sub NTFY_Attr
{ {
my ( $cmd, $name, $aName, $aValue ) = @_; my ( $cmd, $name, $aName, $aValue ) = @_;
return undef; return undef;
} }
@ -517,7 +520,12 @@ sub NTFY_Delete
<a id="NTFY_CLIENT-attrib"></a> <a id="NTFY_CLIENT-attrib"></a>
<h4>Attributes</h4> <h4>Attributes</h4>
No own attributes supported yet. <dl>
<dt><b>defaultTopic</b></dt>
<dd>
Sets the default topic used if no topic is provided within the publish string.
</dd>
</dl>
=end html =end html