add special debug output for testing

This commit is contained in:
Marko Oldenburg 2020-01-09 04:58:46 +01:00
parent a7179c57ce
commit 9b390cfdd4

View File

@ -724,12 +724,13 @@ qx(ssh $sshHost '$psCommand | grep -E "$gatttoolCmdlineStaticEscaped"')
Log3($name, 5,
"XiaomiBTLESens ($name) - ExecGatttool_Run: gatttool loop result "
. join( ",", @gtResult ));
$loop++;
$returnCode = 2
unless ( defined( $gtResult[0] ) );
# } while ( $loop < 5 and $gtResult[0] eq 'connect error' );
print('DEBUG BTLESens!!! - Exit Code: ' . $returnCode . "\n");
$loop++;
} while ( $loop < 5 and $returnCode != 0 );
Log3($name, 3,
"XiaomiBTLESens ($name) - ExecGatttool_Run: errorcode: \"$returnCode\", ErrorString: \"$returnString\"")