SolarOS 4.6.8 manual · network
Wi-Fi, MQTT, and network APIs
Network modules are package-gated. Inspect their status before assuming Wi-Fi, MQTT, or diagnostic networking exists in the current firmware.
Wi-Fi
From the shell, wifi opens the display TUI and wifi status works on every shell. A script can scan before connecting:
import solaros
for network in solaros.wifi.scan():
print(network)
print(solaros.wifi.status())
Connecting or stopping Wi-Fi can interrupt an active agent, SSH, chat, or HTTP session. Confirm disruptive changes locally.
MQTT
Connect to a broker, subscribe, then read messages with bounded timeouts. MQTT settings are stored by the service; do not embed credentials in a public script.
Quick reference
solaros.wifi provides status, status_text, start, stop, connect, connect_saved, disconnect, forget, forget_ssid, forget_all, known, scan, ap_start, ap_stop, and nat. solaros.mqtt provides status, connect, disconnect, publish, subscribe, and read. solaros.net.ping(host, optional count, timeout_ms, interval_ms, data_size) returns statistics. These modules are package-gated.