Skip to content
Get SDK Access

Network Configuration Example (Python)

This is a Python script that connects to an RCSP server, lists the connected devices, and gets/sets the network configuration for the first one. It is intentionally minimal — its job is to make the wire format and the command envelope easy to read in code, alongside the RCSP specification.

The flow is:

  1. Open a TCP socket to the RCSP server (default localhost:45451).
  2. Send the ListDevices top-level command and read the response.
  3. Either:
    • Send a GetDeviceNetworkConfig device command for the first device returned, or
    • Send a SetDeviceNetworkConfig device command to change the IP address.

This is the same script that is used in the Wi-Fi setup guide.