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:
@@ -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 ":"
|
||||||
|
|||||||
Reference in New Issue
Block a user