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

Function hide_bluetooth_device

webapp_modern.py:12596–12607  ·  view source on GitHub ↗

Hide Bluetooth device (make non-discoverable)

()

Source from the content-addressed store, hash-verified

12594 except (ValueError, AttributeError):
12595 # Non-IP values sort to the end
12596 return (1, ip)
12597
12598 enriched_hosts.sort(key=safe_ip_sort_key)
12599
12600 response = jsonify({
12601 'success': True,
12602 'hosts': enriched_hosts,
12603 'count': len(enriched_hosts),
12604 'timestamp': datetime.now().isoformat(),
12605 'source': 'sqlite_database',
12606 'presence_live': bool(presence),
12607 'online_count': sum(1 for h in enriched_hosts if h['status'] == 'up')
12608 })
12609 response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
12610 response.headers['Pragma'] = 'no-cache'

Callers

nothing calls this directly

Calls 2

set_discoverableMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected