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
| Operation | Syntax |
|---|---|
| Query | QAPWaa |
| Configure | SAPWaasid,pass,ip,subnetmask,gateway |
| Response | RAPWaasid,pass,ip,subnetmask,gateway |
Parameters
| Parameter | Description | Example |
|---|---|---|
aa | AP Index | 00 to 09 (10 networks) |
sid | Network name (SSID) | MiRedWiFi |
pass | Password | clave123 |
ip | Fixed IP (optional) | 192.168.1.50 |
subnetmask | Subnet mask (optional) | 255.255.255.0 |
gateway | Gateway (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 01Multiple networks configuration
>SAPW00RedOficina,clave123< // Main network
>SAPW01RedBodega,otrapass< // Alternative network 1
>SAPW02RedMovil,hotspot123< // Alternative network 2WiFi Module Control
The WiFi module must be manually turned on with the SS command before using the configured connections.
| Action | Command |
|---|---|
| 🟢 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
- APX Command - Access Point Mode
- CXWIF Command - General WiFi Configuration
- SS Command - Signal Control
Last updated