APY Command — Service Access Point
Configures the second Access Point of the device, reserved for service tasks. It is used together with CXWIF in apmode=2 mode, which brings up an Access Point with the data defined by APY.
What is it for?
📶 Main use cases:
- 🛠️ Create a service network independent from the main network (APX)
- 📡 Local access for maintenance and diagnostics
- 🔧 One-off field configuration without using the production network
- 🔀 Separate the service AP from the device’s operational AP
Commands
| Operation | Syntax |
|---|---|
| Query | QAPY |
| Configure | SAPYsid,pass,ip,subnetmask,gateway |
| Response | RAPYsid,pass,ip,subnetmask,gateway |
Parameters
| Parameter | Description | Example |
|---|---|---|
sid | Service network name (SSID) | RinhoService |
pass | Password | clave123 |
ip | Fixed IP (optional) | 192.168.4.1 |
subnetmask | Mask (optional) | 255.255.255.0 |
gateway | Gateway (optional) | 192.168.4.1 |
Leave IP, mask and gateway fields empty to use automatic DHCP.
Examples
Configure the service AP
>SAPYRinhoService,clave123<
>RAPYRinhoService,clave123,,,;ID=865413053386354;*XX<Configure with fixed IP
>SAPYRinhoService,clave123,192.168.4.1,255.255.255.0,192.168.4.1<
// │ │ │ │ └─ Gateway
// │ │ │ └─ Mask
// │ │ └─ AP fixed IP
// │ └─ Password
// └─ Service network name (SSID)Query the current configuration
>QAPY<
>RAPYRinhoService,clave123,,,<Use with CXWIF (apmode=2)
The service AP is activated by setting the WiFi operation mode to apmode=2 via CXWIF. In this mode the device brings up an Access Point with the data stored in APY.
>SAPYRinhoService,clave123< // Service AP data
>SCXWIF1,2,0< // WiFi ON, apmode=2 (AP with APY data)Compatibility
💾Firmware:v1.09.19
SP-IOT
SM-IOT
ZE-IOT
See Also
- APW Command - Station mode (WiFi client)
- APX Command - Main Access Point
- CXWIF Command - General WiFi configuration
Last updated