Plain English

Toggles DHCP client mode on the Wi-Fi interface. When ON, the printer obtains an IP/gateway/netmask/DNS automatically and the static-IP commands (`WLAN IP`, `WLAN GATEWAY`, `WLAN NETMASK`, `WLAN DNS`) are ignored at boot. When OFF, the static-IP commands take effect.

When to use

At most once per Wi-Fi profile. Default to `ON` for DHCP-managed networks; switch to `OFF` only when the deployment requires static addressing.

Syntax

WLAN DHCP ON | WLAN DHCP OFF

Parameters

ParameterDescription
state
DHCP client mode (case-insensitive).
  • ON - Obtain IP/gateway/netmask/DNS via DHCP — static-IP commands are ignored
  • OFF - Use the static-IP commands (WLAN IP, GATEWAY, NETMASK, DNS)

Example

WLAN DHCP ON

Use DHCP for IPv4 addressing

Try it in the playground View all TSPL commands