| 9 | #include <unistd.h> |
| 10 | |
| 11 | bool BluetoothHelper::IsAvailable() { |
| 12 | int dev_id = hci_get_route(nullptr); |
| 13 | int sock = hci_open_dev(dev_id); |
| 14 | if(dev_id < 0 || sock < 0) |
| 15 | return false; |
| 16 | close(sock); |
| 17 | return true; |
| 18 | } |
| 19 | |
| 20 | void BluetoothHelper::StartScan() {} |
| 21 |
nothing calls this directly
no outgoing calls
no test coverage detected