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.
Parameters
Section titled “Parameters”| Parameter | ID | Type | Default | Description |
|---|---|---|---|---|
| WiFi SSID | 6000 | STRING | '' | Network name to join |
| WiFi Password | 6001 | STRING | '' | Network password (WPA2) |
| WiFi Mode | 6002 | USINT | 0 | 0 = DHCP, 1 = Static IP |
| WiFi IP | 6003 | STRING | 192.168.1.50 | Static IP address (used when Mode = 1) |
| WiFi SubnetMask | 6004 | STRING | 255.255.255.0 | Static subnet mask |
| WiFi Gateway | 6005 | STRING | 192.168.1.1 | Static default gateway |
| WiFi DNS | 6006 | STRING | 8.8.8.8 | Static DNS server |
All parameters are read/write both offline (project configuration) and online.
Setting up WiFi
Section titled “Setting up WiFi”- Open the device editor for CODESYS Control Pico2 W in the device tree.
- Go to the Parameter List tab (or equivalent — da confermare nome esatto tab in questa versione di CODESYS).
- Set WiFi SSID and WiFi Password to match your network.
- 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.
- Download the application over USB (first-time setup must be wired, since the board isn’t on the network yet).
- 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]
Using the network from ST
Section titled “Using the network from ST”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.