mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 01:06:04 +00:00
fhem.pl: add setNotifyDev (Forum #125381)
git-svn-id: https://svn.fhem.de/fhem/trunk@25541 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
292c8fd2bb
commit
be897603ae
14
fhem/fhem.pl
14
fhem/fhem.pl
@ -155,6 +155,7 @@ sub setGlobalAttrBeforeFork($);
|
|||||||
sub setReadingsVal($$$$);
|
sub setReadingsVal($$$$);
|
||||||
sub setAttrList($$);
|
sub setAttrList($$);
|
||||||
sub setDevAttrList($;$);
|
sub setDevAttrList($;$);
|
||||||
|
sub setNotifyDev($$);
|
||||||
sub toJSON($);
|
sub toJSON($);
|
||||||
sub utf8ToLatin1($);
|
sub utf8ToLatin1($);
|
||||||
|
|
||||||
@ -5604,6 +5605,19 @@ notifyRegexpChanged($$;$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub
|
||||||
|
setNotifyDev($$)
|
||||||
|
{
|
||||||
|
my ($hash, $ntfydev) = @_;
|
||||||
|
|
||||||
|
if($ntfydev) {
|
||||||
|
$hash->{NOTIFYDEV} = $ntfydev;
|
||||||
|
} else {
|
||||||
|
delete($hash->{NOTIFYDEV});
|
||||||
|
}
|
||||||
|
%ntfyHash = ();
|
||||||
|
}
|
||||||
|
|
||||||
sub
|
sub
|
||||||
configDBUsed()
|
configDBUsed()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user