add special thanks to Holger S
This commit is contained in:
parent
739ff29cbc
commit
1d73180f9c
@ -7,6 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Special thanks goes to:
|
# Special thanks goes to:
|
||||||
# - Charlie71: add special patch
|
# - Charlie71: add special patch
|
||||||
|
# - Holger S: patch to support Mijia LYWSD03MMC devices
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# This script is free software; you can redistribute it and/or modify
|
# This script is free software; you can redistribute it and/or modify
|
||||||
@ -669,7 +670,7 @@ sub CreateParamGatttool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub Gatttool_executeCommand {
|
sub Gatttool_executeCommand {
|
||||||
my $command = join( ' ', @_ );
|
my $command = join q{ }, @_;
|
||||||
return ( $_ = qx{$command 2>&1}, $? >> 8 );
|
return ( $_ = qx{$command 2>&1}, $? >> 8 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -758,7 +759,7 @@ qx(ssh $sshHost '$psCommand | grep -E "$gatttoolCmdlineStaticEscaped"')
|
|||||||
|
|
||||||
Log3( $name, 5,
|
Log3( $name, 5,
|
||||||
"XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool loop result "
|
"XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool loop result "
|
||||||
. join( ',', @gtResult ) );
|
. join q{,}, @gtResult );
|
||||||
|
|
||||||
$returnCode = 2
|
$returnCode = 2
|
||||||
if ( !defined( $gtResult[0] ) );
|
if ( !defined( $gtResult[0] ) );
|
||||||
@ -771,7 +772,7 @@ qx(ssh $sshHost '$psCommand | grep -E "$gatttoolCmdlineStaticEscaped"')
|
|||||||
|
|
||||||
Log3( $name, 4,
|
Log3( $name, 4,
|
||||||
"XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool result "
|
"XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool result "
|
||||||
. join( ",", @gtResult ) );
|
. join q{,}, @gtResult );
|
||||||
|
|
||||||
$handle = '0x35'
|
$handle = '0x35'
|
||||||
if ( $sshHost ne 'none'
|
if ( $sshHost ne 'none'
|
||||||
|
Loading…
Reference in New Issue
Block a user