Plain English

Generic Wi-Fi configuration dispatcher. The first word after WLAN picks the sub-action — SSID sets the network name, PSK sets the WPA passphrase, ENCRYPTION picks the security mode, IP/GATEWAY/NETMASK/DNS configure a static-IP profile, and DHCP toggles automatic addressing (which overrides the static-IP commands). Not in the 2009 TSPL2 PG: Wi-Fi is an optional module on later TSC models (TX/TE/MH-series and Alpha-series with optional Wi-Fi) and the commands are documented in per-model WLAN setup addenda. Engine-recognised but not rendered — labels with WLAN configure the printer hardware rather than producing label content.

When to use

When provisioning a Wi-Fi-equipped TSC printer in-band as part of a label setup script. Pair `WLAN SSID` + `WLAN ENCRYPTION` + `WLAN PSK` for WPA networks, or set `WLAN DHCP ON` to use a DHCP server's addressing.

Syntax

WLAN <sub-action> <args>

Parameters

ParameterDescription
sub-action
The Wi-Fi setting to configure (case-insensitive).
  • SSID - Wi-Fi network name (ESSID)
  • PSK - WPA/WPA2/WPA3 pre-shared key passphrase (credential)
  • ENCRYPTION - Security mode (OPEN, WEP, WPA, WPA2, WPA3, …)
  • IP - Static IPv4 address (ignored when DHCP=ON)
  • DHCP - Toggle DHCP client mode (ON/OFF)
  • GATEWAY - Default-gateway IPv4 address (ignored when DHCP=ON)
  • NETMASK - Subnet mask (ignored when DHCP=ON)
  • DNS - Primary DNS server address (ignored when DHCP=ON)
args
Sub-action-specific arguments — see the individual WLAN <sub-action> entries

Example

WLAN SSID "OfficeWiFi"
WLAN ENCRYPTION WPA2
WLAN PSK "ChangeThisPassphrase"
WLAN DHCP ON

Join WPA2 network "OfficeWiFi" with DHCP-assigned addressing

Try it in the playground View all TSPL commands