Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_EQ3BT.pm line 525. #37

Open
djStolen opened this issue Oct 9, 2018 · 1 comment

Comments

@djStolen
Copy link

djStolen commented Oct 9, 2018

File Rev Last Change

10_EQ3BT.pm 17484 2018-10-07 18:54:14Z dominik

fhemweb.js 17478 2018-10-07 16:45:18Z rudolfkoenig

@chrizz1001
Copy link

yeah, I am not so much into pearl... Anybody knows whats wrong here?

sub EQ3BT_execGatttool($) {
my ($string) = @_;
my ($name, $mac, $workType, $handle, $value, $listen) = split("\\|", $string);
my $wait = 1;
my $hash = $main::defs{$name};
my $sshHost = AttrVal($name,"sshHost","none");
my $gatttool; # = qx(which gatttool);
$gatttool = qx(which gatttool) if($sshHost eq 'none');
$gatttool = qx(ssh $sshHost 'which gatttool') if($sshHost ne 'none');
chomp $gatttool;
#if(-x $gatttool) {
if(defined($gatttool) and ($gatttool)) {
my $gtResult;
my $cmd;
my $hciDevice = "hci".$hash->{helper}{hcidevices}[$hash->{helper}{currenthcidevice}];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants