change [1] for
This commit is contained in:
parent
5953b7e288
commit
56c5b5aa68
@ -47,7 +47,7 @@ use JSON;
|
|||||||
use Blocking;
|
use Blocking;
|
||||||
|
|
||||||
|
|
||||||
my $version = "2.0.6debug7";
|
my $version = "2.0.6debug10";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -474,11 +474,13 @@ sub XiaomiBTLESens_ExecGatttool_Run($) {
|
|||||||
do {
|
do {
|
||||||
|
|
||||||
Log3 $name, 5, "XiaomiBTLESens ($name) - ExecGatttool_Run: call gatttool with command $cmd and loop $loop";
|
Log3 $name, 5, "XiaomiBTLESens ($name) - ExecGatttool_Run: call gatttool with command $cmd and loop $loop";
|
||||||
@gtResult = split(": ",qx($cmd)) unless( AttrVal($name,"model","none") eq 'thermoHygroSens' and $gattCmd eq 'write' and $handle eq '0x10');
|
@gtResult = split(": ",qx($cmd)); # unless( AttrVal($name,"model","none") eq 'thermoHygroSens' and $gattCmd eq 'write' and $handle eq '0x10');
|
||||||
@gtResult = split(",",qx($cmd)) if( AttrVal($name,"model","none") eq 'thermoHygroSens' and $gattCmd eq 'write' and $handle eq '0x10');
|
#@gtResult = split(",",qx($cmd)) if( AttrVal($name,"model","none") eq 'thermoHygroSens' and $gattCmd eq 'write' and $handle eq '0x10');
|
||||||
Log3 $name, 5, "XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool loop result ".join(",", @gtResult);
|
Log3 $name, 5, "XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool loop result ".join(",", @gtResult);
|
||||||
$loop++;
|
$loop++;
|
||||||
|
|
||||||
|
$gtResult[1] = split("\n",$gtResult[1]) if( AttrVal($name,"model","none") eq 'thermoHygroSens' and $gattCmd eq 'write' and $handle eq '0x10');
|
||||||
|
|
||||||
$gtResult[0] = 'connect error'
|
$gtResult[0] = 'connect error'
|
||||||
unless( defined($gtResult[0]) );
|
unless( defined($gtResult[0]) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user