From 063201f59e5fbb86f9ca4c1571980ddb1f9f9333 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 18 Jan 2018 18:21:11 +0100 Subject: [PATCH] change --listen for all writes --- 74_CometBlueBTLE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/74_CometBlueBTLE.pm b/74_CometBlueBTLE.pm index 4fc33ab..4edf3c9 100644 --- a/74_CometBlueBTLE.pm +++ b/74_CometBlueBTLE.pm @@ -471,7 +471,7 @@ sub CometBlueBTLE_ExecGatttool_Run($) { $cmd .= "gatttool -i $hci -b $mac "; $cmd .= "--char-read -a $handle" if($gattCmd eq 'read'); $cmd .= "--char-write-req -a $handle -n $value" if($gattCmd eq 'write'); - $cmd = "timeout 15 ".$cmd." --listen" if($gattCmd eq 'write' and $handle eq $gatttChar{'payload'}); + $cmd = "timeout 15 ".$cmd." --listen" if($gattCmd eq 'write'); $cmd .= " 2>&1 /dev/null"; $cmd .= "'" if($sshHost ne 'none');