WiFi Configuration
The IO e WiFi module, under the device node, 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 in the project and applied at download, with no reboot of the board.
WiFi is for the application: CODESYS login, download and monitoring always go over USB.
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”- In the device tree, open the IO e WiFi module, under the nXPico W node.
- Go to the parameters tab of the IO e WiFi module.
- 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.
- At download the board joins the configured network, with no reboot. A download that leaves the parameters unchanged does not touch the current connection; one that changes them makes the board leave the network and reconnect with the new values.
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.