Skip to Content

APW Command — Station Mode (WiFi Client)

Configures WiFi access points for client connection.


What is it for?

📶 Main use cases:

  • 🏠 Connect to existing WiFi networks (office, warehouse, etc.)
  • 📡 Configure multiple networks for automatic roaming
  • 🔧 Local communication without cellular data consumption
  • 🌐 Download updates via WiFi
  • 📤 Send reports through local network

From version 1.8.00 onwards, it is possible to configure a fixed IP instead of using DHCP.


Commands

OperationSyntax
QueryQAPWaa
ConfigureSAPWaasid,pass,ip,subnetmask,gateway
ResponseRAPWaasid,pass,ip,subnetmask,gateway

Parameters

ParameterDescriptionExample
aaAP Index00 to 09 (10 networks)
sidNetwork name (SSID)MiRedWiFi
passPasswordclave123
ipFixed IP (optional)192.168.1.50
subnetmaskSubnet mask (optional)255.255.255.0
gatewayGateway (optional)192.168.1.1

Leave IP, mask and gateway fields empty to use automatic DHCP.


Examples

Configuration with DHCP (automatic)

>SAPW00RedWifi,123456789< // Index 00, SSID, password (auto DHCP) >RAPW00RedWifi,123456789,,,;ID=865413053386354;*57<

Configuration with Fixed IP

>SAPW01RedWifiAlternativa,123456789,192.168.1.50,255.255.255.0,192.168.1.1< // │ │ │ │ │ └─ Gateway // │ │ │ │ └─ Mask // │ │ │ └─ Device fixed IP // │ │ └─ Password // │ └─ Network name (SSID) // └─ Index 01

Multiple networks configuration

>SAPW00RedOficina,clave123< // Main network >SAPW01RedBodega,otrapass< // Alternative network 1 >SAPW02RedMovil,hotspot123< // Alternative network 2

WiFi Module Control

The WiFi module must be manually turned on with the SS command before using the configured connections.

ActionCommand
🟢 Turn on WiFi>SSSWIFPWR11<
🔴 Turn off WiFi>SSSWIFPWR00<
📶 Station Mode>SCXWIF1,0,0<

Compatibility

💾Firmware:v1.00.00
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated