WiFi
Page WIFI (PageID 2). The ID column is the parameter_id you pass in a GET_PARAMETER request.
| ID | Parameter name | TYPE | Read | Write | Default value | Description |
|---|---|---|---|---|---|---|
| 0 | WIFI_PARAMETER_COUNT |
Uint32 | 0 | Number of parameters on this page | ||
| 1 | WIFI_MODE |
Wifi_Mode |
WIFI_SOFTAP |
Station, soft AP or off | ||
| 2 | STA_SECURITY |
Wifi_AuthMode |
WIFI_AUTH_OPEN |
Authentication | ||
| 3 | STA_SSID |
String | "" | SSID to connect | ||
| 4 | STA_WPA2_PSK |
String | "" | Password. Reads as ******** when one is set, empty otherwise. Writing ******** back leaves it unchanged |
||
| 5 | STA_DHCP_CLIENT_ENABLED |
Bool | True | Obtain IP address from gateway | ||
| 6 | STA_IPV4_ADDRESS |
Uint32 | 0 | Fixed IP address | ||
| 7 | STA_DEFAULT_GATEWAY |
Uint32 | 0 | Default gateway | ||
| 8 | STA_SUBNET_MASK |
Uint32 | 0xFFFFFF | Default subnet | ||
| 9 | STA_RECONNECT_ATTEMPTS |
Uint32 | 0 | Failed attempts in a row after which the RedBox opens its own access point again, within 15 minutes of power-up. 0 means 6. Reconnecting goes on regardless | ||
| 10 | STA_RSSI |
Int32 | 0 | Current signal strength | ||
| 11 | STA_MAC_ADDR |
String | "" | MAC address station connected | ||
| 14 | AP_SSID |
String | "RAVAS RB" + UID | SSID of the RedBox's own access point. Set to RAVAS RB and the device UID in hex when shorter than 2 characters |
||
| 15 | AP_WPA2_PSK |
String | "PASSWORD" | Password of the RedBox's own access point. Reads like STA_WPA2_PSK. Set to PASSWORD when not 8 to 63 characters |
||
| 16 | AP_ACTIVE |
Bool | False | Acces-Point active | ||
| 17 | STA_CONNECTED |
Bool | False | Station is connected | ||
| 18 | STA_CONNECT_STATE |
Wifi_ConnectState |
UNSPECIFIED |
Result of the last attempt to join a network | ||
| 20 | MAC_ADDR |
String | "" | MAC address Ravas RedBox | ||
| 21 | ROAMING_RSSI_THRESHOLD |
Int32 | -75 | Signal strength below which the device looks for a better access point. 0 or above turns roaming off |
Note
STA_CONNECT_STATE keeps reporting the last failure until you acknowledge it with the WIFI_CLEAR_MESSAGE request.
Once the RedBox has joined a network for the first time, writing these parameters over its own access point or over BLE needs a login. Over the customer's network it needs none.
The RedBox's own access point takes at most two clients. It is open for 15 minutes after every power-up, and after that closes a minute after its last client leaves.