Skip to content

WiFi Configuration

Raspberry Pi Pico 2W’s device description exposes seven configuration parameters that control the onboard WiFi radio and TCP/IP stack. Unlike the I/O channels, these are configuration parameters (channel="none") rather than cyclically-updated I/O — they are set at project-design time (or via the parameter service, TBD) and applied on the next connection/reboot.

ParameterIDTypeDefaultDescription
WiFi SSID6000STRING''Network name to join
WiFi Password6001STRING''Network password (WPA2)
WiFi Mode6002USINT00 = DHCP, 1 = Static IP
WiFi IP6003STRING192.168.1.50Static IP address (used when Mode = 1)
WiFi SubnetMask6004STRING255.255.255.0Static subnet mask
WiFi Gateway6005STRING192.168.1.1Static default gateway
WiFi DNS6006STRING8.8.8.8Static DNS server

All parameters are read/write both offline (project configuration) and online.

  1. Open the device editor for CODESYS Control Pico2 W in the device tree.
  2. Go to the Parameter List tab (or equivalent — da confermare nome esatto tab in questa versione di CODESYS).
  3. Set WiFi SSID and WiFi Password to match your network.
  4. Choose WiFi Mode:
    • 0 (DHCP) — leave IP/SubnetMask/Gateway/DNS at their defaults; the board obtains an address automatically.
    • 1 (Static) — set WiFi IP, WiFi SubnetMask, WiFi Gateway and WiFi DNS explicitly.
  5. Download the application over USB (first-time setup must be wired, since the board isn’t on the network yet).
  6. After reboot, the board joins the configured network. Use its IP (shown on your router, or via a network scanner) to switch Communication Settings to WiFi for subsequent logins/downloads.

[Da completare: come viene mostrato l’IP corrente a runtime (es. variabile di sistema, WebVisu, log), comportamento in caso di rete non raggiungibile]

Once WiFi is up, ST programs reach the network through the Library section: raw sockets via the standard SysSocket, and certificates/MQTT via neXo’s own libraries — X.509 Certificate Manager and MQTT / MQTTS.