Network Configuration

1 min read

February 1, 2026

Cassandra supports both Station (STA) mode, connecting to an existing Wi-Fi network, and Access Point (AP) mode, creating its own network for configuration.



Hostname

The hostname identifies the device on the network.

  • Default: cassandra-dev (or similarly configured)
  • Usage: Used for mDNS (e.g., cassandra-dev.local) if supported.

Station (STA) Mode

In this mode, Cassandra connects to your home or office router.

SettingJSON KeyDescription
SSIDsta_ssidThe name of the Wi-Fi network to connect to.
Passwordsta_passwordThe password for the Wi-Fi network.
IP Addresssta_local_ipStatic IP address for the device (e.g., 192.168.1.250).
Gatewaysta_gatewayNetwork gateway (usually your router’s IP, e.g., 192.168.1.1).
Subnet Masksta_subnetSubnet mask (e.g., 255.255.255.0).
Primary DNSsta_primary_dnsPrimary DNS server (e.g., 192.168.1.1 or 8.8.8.8).
Secondary DNSsta_secondary_dnsSecondary DNS server.

Access Point (AP) Mode

If enabled, Cassandra creates its own restricted Wi-Fi network. This is useful for initial setup if no other network is available.

SettingJSON KeyDescription
SSIDap_ssidThe name of the network Cassandra will create (e.g. PolyMechAP).
Passwordap_passwordThe password required to connect to this AP.
AP IPap_config_ipThe IP address of Cassandra itself within this network (e.g., 192.168.4.1).
Gatewayap_config_gatewayGateway address for the AP network.
Subnetap_config_subnetSubnet mask for the AP network.

Network Configuration File

The network settings are stored in config/network.json.

{
  "sta_ssid": "StartNetwork",
  "sta_local_ip": "192.168.1.250",
  ...
}