Skip to content

Features Network

coe0718 edited this page May 23, 2026 · 4 revisions

Network

Query network status and WiFi information.

Network Status

deskbrid network status

Response:

{
  "type": "response",
  "status": "ok",
  "data": {
    "connected": true,
    "interface": "wlan0",
    "type": "wifi",
    "ssid": "MyNetwork",
    "signal": 85
  }
}

Protocol:

{"type": "network.status"}

WiFi Networks

deskbrid network wifi

Response:

{
  "type": "response",
  "status": "ok",
  "data": [
    {"ssid": "MyNetwork", "signal": 85, "secured": true},
    {"ssid": "GuestNetwork", "signal": 42, "secured": false}
  ]
}

Protocol:

{"type": "network.wifi"}

Python Example

from deskbrid import Deskbrid

client = Deskbrid()

status = client.network_status()
if status["connected"]:
    print(f"Connected to {status['ssid']}")
else:
    print("No network connection")

Clone this wiki locally