mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
00_MQTT2_CLIENT.pm: delete password when the instance is deleted (Forum #90135)
git-svn-id: https://svn.fhem.de/fhem/trunk@17716 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b490673b47
commit
7bae973520
@ -27,6 +27,7 @@ MQTT2_CLIENT_Initialize($)
|
||||
$hash->{AttrFn} = "MQTT2_CLIENT_Attr";
|
||||
$hash->{SetFn} = "MQTT2_CLIENT_Set";
|
||||
$hash->{UndefFn} = "MQTT2_CLIENT_Undef";
|
||||
$hash->{DeleteFn}= "MQTT2_CLIENT_Delete";
|
||||
$hash->{WriteFn} = "MQTT2_CLIENT_Write";
|
||||
$hash->{ReadyFn} = "MQTT2_CLIENT_connect";
|
||||
|
||||
@ -154,6 +155,15 @@ MQTT2_CLIENT_Undef($@)
|
||||
return undef;
|
||||
}
|
||||
|
||||
sub
|
||||
MQTT2_CLIENT_Delete($@)
|
||||
{
|
||||
my ($hash, $arg) = @_;
|
||||
setKeyValue($hash->{NAME}, undef);
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
sub
|
||||
MQTT2_CLIENT_Attr(@)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user