Permalink
Browse files

Fix BLE scan for Linux

  • Loading branch information...
thesoultaker48 committed Sep 10, 2018
1 parent fb933fc commit 5f58233c4cdacb1c81b06cc47a808f63551e6d2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/bluetoothdevices/bluetoothdevices.class.php
@@ -300,7 +300,7 @@ function processCycle() {
// Discovery
$data = array();
exec('sudo hcitool scan | grep ":"', $data);
exec('timeout -s INT 30s hcitool lescan | grep ":"', $data);
exec('sudo timeout -s INT 30s hcitool lescan | grep ":"', $data);
$total = count($data);
for($i=0; $i<$total; $i++) {
$data[$i] = trim($data[$i]);

0 comments on commit 5f58233

Please sign in to comment.