mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
70_ESCVP21net: fix for GetAll in StatusCheckCmd
git-svn-id: https://svn.fhem.de/fhem/trunk@25654 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
66a05910be
commit
9e62f5b4dc
@ -907,7 +907,7 @@ sub ESCVP21net_setValue($){
|
|||||||
my ($string) = @_;
|
my ($string) = @_;
|
||||||
my ( $name, $cmd, $val ) = split( "\\|", $string );
|
my ( $name, $cmd, $val ) = split( "\\|", $string );
|
||||||
my $result = "none";
|
my $result = "none";
|
||||||
my $returnval = "$name|$cmd|error";
|
my $returnval = "$name|$cmd|error"; # just fir initialization
|
||||||
my @resultarr;
|
my @resultarr;
|
||||||
my $data = "";
|
my $data = "";
|
||||||
my $datakey = "none";
|
my $datakey = "none";
|
||||||
@ -965,7 +965,9 @@ sub ESCVP21net_setValue($){
|
|||||||
$returnval = "$name|$cmd|no socket";
|
$returnval = "$name|$cmd|no socket";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined ($sock) && $initstatus eq "init_ok"){
|
if (defined ($sock) && $initstatus eq "init_ok"){
|
||||||
|
# re-init returnval to empty string
|
||||||
|
$returnval = "";
|
||||||
# GetAll will query all set values which have a "get" defined
|
# GetAll will query all set values which have a "get" defined
|
||||||
# result of each single command will be formatted as $name|$cmd|$result
|
# result of each single command will be formatted as $name|$cmd|$result
|
||||||
# results of all commands will then be separated by ":"
|
# results of all commands will then be separated by ":"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user