Get current Bluetooth status
()
| 12538 | logger.warning("arp-scan command not found") |
| 12539 | return {} |
| 12540 | except subprocess.TimeoutExpired as e: |
| 12541 | logger.warning(f"arp-scan timed out: {e}") |
| 12542 | return {} |
| 12543 | except Exception as e: |
| 12544 | logger.error(f"Error running arp-scan: {e}") |
| 12545 | return {} |
| 12546 | |
| 12547 | def _detect_local_cidr(): |
| 12548 | """Return the local network CIDR derived from `ip` output, or None. |
| 12549 | |
| 12550 | Used as a runtime fallback when an API caller doesn't pass an explicit |
| 12551 | network=. Replaces the old hardcoded '192.168.1.0/24' default that |
| 12552 | silently scanned the wrong subnet on any non-192.168.1.x network. |
| 12553 | """ |
| 12554 | try: |
nothing calls this directly
no test coverage detected