CXWIF Command — WiFi Configuration
Configures the global behavior of the device’s WiFi module.
What is it for?
📶 Main use cases:
- 🔌 Activate or deactivate the WiFi module
- 📡 Select Station (client) or Access Point mode
- 📤 Enable automatic report sending via WiFi
- ⚙️ Initial WiFi system configuration
Commands
| Operation | Syntax |
|---|---|
| Query | QCXWIF |
| Configure | SCXWIFwifipwr,apmode,autodestiny |
| Response | RCXWIFwifipwr,apmode,autodestiny |
Parameters
| Parameter | Description | Values |
|---|---|---|
wifipwr | Module activation | 0 = Off (default), 1 = On |
apmode | Operation mode | 0 = Station (default), 1 = Access Point |
autodestiny | Automatic WiFi report | 0 = Disabled (default), 1 = Enabled |
When autodestiny=1, reports without explicit destination will be sent to IP3 (if defined) or alternately to IP0/IP1.
Examples
Station Mode with WiFi Reports
// WiFi ON, Station mode, automatic reports ON
>SCXWIF1,0,1<
>RCXWIF1,0,1;ID=865413053386354;*31<Access Point Mode
// WiFi ON, AP mode, no automatic reports
>SCXWIF1,1,0<
>RCXWIF1,1,0;ID=865413053386354;*30<Quick Configurations
| Scenario | Command | Description |
|---|---|---|
| 📡 WiFi as client | >SCXWIF1,0,0< | Connect to existing network |
| 📶 WiFi as AP | >SCXWIF1,1,0< | Create own network |
| 📤 Client + reports | >SCXWIF1,0,1< | Client with automatic sending |
| 🔴 Turn off WiFi | >SCXWIF0,0,0< | Deactivate module |
Operation Modes
| Mode | Description | Associated command |
|---|---|---|
| Station | Device connects to existing WiFi network | APW |
| Access Point | Device creates its own WiFi network | APX |
Compatibility
💾Firmware:v1.00.00
SP-IOT
SM-IOT
ZE-IOT
See Also
- APW Command - Station mode configuration
- APX Command - Access Point mode configuration
- IP Command - Report destinations
- Terminal Access Point mode - Practical example
Last updated