MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_bluetooth_status

Function get_bluetooth_status

webapp_modern.py:12540–12551  ·  view source on GitHub ↗

Get current Bluetooth status

()

Source from the content-addressed store, hash-verified

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
12547def _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:

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
get_statusMethod · 0.45

Tested by

no test coverage detected