Skip to content

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.

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. In the device tree, open the IO e WiFi module, under the nXPico W node.
  2. Go to the parameters tab of the IO e WiFi module.
  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.
  6. 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.

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.