Wi-Fi Configuration
wifi/state
The current Wi-Fi state.
{
"connection_state": 3,
"connection_start": 10117,
"connection_end": 0,
"ap_state": 2,
"ap_bssid": "C4:5B:BE:C0:FF:EE",
"sta_ip": "10.1.2.3",
"sta_subnet": "255.255.255.0",
"sta_rssi": -38,
"sta_bssid": "71:21:CE:12:F0:12"
}
| Name | Description |
|---|---|
connection_stateint | State of the connection to the configured Wi-Fi. See
|
ap_stateint | State of the Wi-Fi access point. See
|
ap_bssidstring | BSSID of the Wi-Fi access point. |
ap_sta_countint | Number of devices currently connected to the Wi-Fi access point. |
sta_ipstring | Current IP of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_subnetstring | Current subnet mask of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_rssiint | The current reception quality. 0 if no connection exists, otherwise negative. Values closer to 0 indicate better reception. |
sta_bssidstring | The BSSID of the remote station to which the device is connected. |
connection_startint (ms) | Time in milliseconds when the last connection was established. |
connection_endint (ms) | Time in milliseconds when the last connection was disconnected. |
wifi/scan
Triggers a scan for Wi-Fi networks. The scan results can currently only be queried via HTTP.
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
wifi/sta_config
The Wi-Fi connection configuration.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
curl http://$HOST/wifi/sta_config -d '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
With MQTT on $PREFIX/wifi/sta_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/sta_config_update -m '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_stabool | Indicates whether a Wi-Fi connection to the configured network should be established.
| ||||||||||||||||||||||||
ssidstring | SSID to which the device should connect. | ||||||||||||||||||||||||
bssidint[6] | BSSID to which the device should connect. This entry is optional and can be left empty, but is required for bssid_lock. | ||||||||||||||||||||||||
bssid_lockbool | Specifies whether to connect only to the Wi-Fi network with the specified BSSID. Leave disabled if repeaters or similar should be used.
| ||||||||||||||||||||||||
enable_11bbool | Specifies whether the outdated and slow 802.11b mode may be used. This also slows down other devices connected to the Wi-Fi, but can slightly improve reception quality and connection robustness.
| ||||||||||||||||||||||||
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. This entry is optional and can be left empty if connecting to an unencrypted Wi-Fi network. | ||||||||||||||||||||||||
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. | ||||||||||||||||||||||||
gatewaystring | Gateway address the device should use in the configured network. | ||||||||||||||||||||||||
subnetstring | Subnet mask the device should use in the configured network. | ||||||||||||||||||||||||
dnsstring | DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
dns2string | Alternative DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
wpa_eap_configUnion | WPA Enterprise configuration
null: WPA Personal
|
wifi/ap_config
The Wi-Fi access point configuration. Warning! If the access point is disabled and the Wi-Fi connection or LAN connection cannot be established or was not configured, the ESP can only be reached via a factory reset! We recommend always leaving the access point in fallback mode.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
curl http://$HOST/wifi/ap_config -d '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
With MQTT on $PREFIX/wifi/ap_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/ap_config_update -m '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
| Name | Description |
|---|---|
enable_apbool | Indicates whether the access point should be enabled.
|
ap_fallback_onlybool | Indicates whether the access point should only be enabled if Wi-Fi and LAN connections cannot be established. Ignored if enable_ap is false.
|
ssidstring | SSID to which devices should connect. |
hide_ssidbool | true if the SSID should be hidden, otherwise false. |
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. |
channelint | Channel on which the access point should be accessible. Valid values are 1 to 13, or 0 if an unoccupied channel should be selected at startup. |
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. |
gatewaystring | Gateway address the device should use in the configured network. |
subnetstring | Subnet mask the device should use in the configured network. |
wifi/scan_results
The Wi-Fi networks found as a result of a search triggered by wifi/scan.
# $HOST e.g. warp-AbCd
curl http://$HOST/wifi/scan_results
[
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0C",
"rssi": -43,
"channel": 9,
"encryption": 3
},
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0D",
"rssi": -43,
"channel": 13,
"encryption": 3
},
{
"ssid": "Anderes WLAN",
"bssid": "C0:FF:EE:4E:5A:0C",
"rssi": -75,
"channel": 1,
"encryption": 3
}
]
Zwei Repeater des selben WLANs haben die gleiche SSID, aber unterschiedliche BSSIDs.
Durch das bssid_lock in wifi/sta_config kann eine Verbindung zu einem spezifischen Repeater
erzwungen werden.
Only supported by the HTTP API
| Index | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[..]object |
|
wifi/state
The current Wi-Fi state.
{
"connection_state": 3,
"connection_start": 10117,
"connection_end": 0,
"ap_state": 2,
"ap_bssid": "C4:5B:BE:C0:FF:EE",
"sta_ip": "10.1.2.3",
"sta_subnet": "255.255.255.0",
"sta_rssi": -38,
"sta_bssid": "71:21:CE:12:F0:12"
}
| Name | Description |
|---|---|
connection_stateint | State of the connection to the configured Wi-Fi. See
|
ap_stateint | State of the Wi-Fi access point. See
|
ap_bssidstring | BSSID of the Wi-Fi access point. |
ap_sta_countint | Number of devices currently connected to the Wi-Fi access point. |
sta_ipstring | Current IP of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_subnetstring | Current subnet mask of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_rssiint | The current reception quality. 0 if no connection exists, otherwise negative. Values closer to 0 indicate better reception. |
sta_bssidstring | The BSSID of the remote station to which the device is connected. |
connection_startint (ms) | Time in milliseconds when the last connection was established. |
connection_endint (ms) | Time in milliseconds when the last connection was disconnected. |
wifi/scan
Triggers a scan for Wi-Fi networks. The scan results can currently only be queried via HTTP.
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
wifi/sta_config
The Wi-Fi connection configuration.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
curl http://$HOST/wifi/sta_config -d '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
With MQTT on $PREFIX/wifi/sta_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/sta_config_update -m '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_stabool | Indicates whether a Wi-Fi connection to the configured network should be established.
| ||||||||||||||||||||||||
ssidstring | SSID to which the device should connect. | ||||||||||||||||||||||||
bssidint[6] | BSSID to which the device should connect. This entry is optional and can be left empty, but is required for bssid_lock. | ||||||||||||||||||||||||
bssid_lockbool | Specifies whether to connect only to the Wi-Fi network with the specified BSSID. Leave disabled if repeaters or similar should be used.
| ||||||||||||||||||||||||
enable_11bbool | Specifies whether the outdated and slow 802.11b mode may be used. This also slows down other devices connected to the Wi-Fi, but can slightly improve reception quality and connection robustness.
| ||||||||||||||||||||||||
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. This entry is optional and can be left empty if connecting to an unencrypted Wi-Fi network. | ||||||||||||||||||||||||
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. | ||||||||||||||||||||||||
gatewaystring | Gateway address the device should use in the configured network. | ||||||||||||||||||||||||
subnetstring | Subnet mask the device should use in the configured network. | ||||||||||||||||||||||||
dnsstring | DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
dns2string | Alternative DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
wpa_eap_configUnion | WPA Enterprise configuration
null: WPA Personal
|
wifi/ap_config
The Wi-Fi access point configuration. Warning! If the access point is disabled and the Wi-Fi connection or LAN connection cannot be established or was not configured, the ESP can only be reached via a factory reset! We recommend always leaving the access point in fallback mode.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp2-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
curl http://$HOST/wifi/ap_config -d '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp2-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
With MQTT on $PREFIX/wifi/ap_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/ap_config_update -m '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
| Name | Description |
|---|---|
enable_apbool | Indicates whether the access point should be enabled.
|
ap_fallback_onlybool | Indicates whether the access point should only be enabled if Wi-Fi and LAN connections cannot be established. Ignored if enable_ap is false.
|
ssidstring | SSID to which devices should connect. |
hide_ssidbool | true if the SSID should be hidden, otherwise false. |
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. |
channelint | Channel on which the access point should be accessible. Valid values are 1 to 13, or 0 if an unoccupied channel should be selected at startup. |
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. |
gatewaystring | Gateway address the device should use in the configured network. |
subnetstring | Subnet mask the device should use in the configured network. |
wifi/scan_results
The Wi-Fi networks found as a result of a search triggered by wifi/scan.
# $HOST e.g. warp2-AbCd
curl http://$HOST/wifi/scan_results
[
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0C",
"rssi": -43,
"channel": 9,
"encryption": 3
},
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0D",
"rssi": -43,
"channel": 13,
"encryption": 3
},
{
"ssid": "Anderes WLAN",
"bssid": "C0:FF:EE:4E:5A:0C",
"rssi": -75,
"channel": 1,
"encryption": 3
}
]
Zwei Repeater des selben WLANs haben die gleiche SSID, aber unterschiedliche BSSIDs.
Durch das bssid_lock in wifi/sta_config kann eine Verbindung zu einem spezifischen Repeater
erzwungen werden.
Only supported by the HTTP API
| Index | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[..]object |
|
wifi/state
The current Wi-Fi state.
{
"connection_state": 3,
"connection_start": 10117,
"connection_end": 0,
"ap_state": 2,
"ap_bssid": "C4:5B:BE:C0:FF:EE",
"sta_ip": "10.1.2.3",
"sta_subnet": "255.255.255.0",
"sta_rssi": -38,
"sta_bssid": "71:21:CE:12:F0:12"
}
| Name | Description |
|---|---|
connection_stateint | State of the connection to the configured Wi-Fi. See
|
ap_stateint | State of the Wi-Fi access point. See
|
ap_bssidstring | BSSID of the Wi-Fi access point. |
ap_sta_countint | Number of devices currently connected to the Wi-Fi access point. |
sta_ipstring | Current IP of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_subnetstring | Current subnet mask of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_rssiint | The current reception quality. 0 if no connection exists, otherwise negative. Values closer to 0 indicate better reception. |
sta_bssidstring | The BSSID of the remote station to which the device is connected. |
connection_startint (ms) | Time in milliseconds when the last connection was established. |
connection_endint (ms) | Time in milliseconds when the last connection was disconnected. |
wifi/scan
Triggers a scan for Wi-Fi networks. The scan results can currently only be queried via HTTP.
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
wifi/sta_config
The Wi-Fi connection configuration.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
curl http://$HOST/wifi/sta_config -d '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
With MQTT on $PREFIX/wifi/sta_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/sta_config_update -m '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_stabool | Indicates whether a Wi-Fi connection to the configured network should be established.
| ||||||||||||||||||||||||
ssidstring | SSID to which the device should connect. | ||||||||||||||||||||||||
bssidint[6] | BSSID to which the device should connect. This entry is optional and can be left empty, but is required for bssid_lock. | ||||||||||||||||||||||||
bssid_lockbool | Specifies whether to connect only to the Wi-Fi network with the specified BSSID. Leave disabled if repeaters or similar should be used.
| ||||||||||||||||||||||||
enable_11bbool | Specifies whether the outdated and slow 802.11b mode may be used. This also slows down other devices connected to the Wi-Fi, but can slightly improve reception quality and connection robustness.
| ||||||||||||||||||||||||
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. This entry is optional and can be left empty if connecting to an unencrypted Wi-Fi network. | ||||||||||||||||||||||||
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. | ||||||||||||||||||||||||
gatewaystring | Gateway address the device should use in the configured network. | ||||||||||||||||||||||||
subnetstring | Subnet mask the device should use in the configured network. | ||||||||||||||||||||||||
dnsstring | DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
dns2string | Alternative DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
wpa_eap_configUnion | WPA Enterprise configuration
null: WPA Personal
|
wifi/ap_config
The Wi-Fi access point configuration. Warning! If the access point is disabled and the Wi-Fi connection or LAN connection cannot be established or was not configured, the ESP can only be reached via a factory reset! We recommend always leaving the access point in fallback mode.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp3-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
curl http://$HOST/wifi/ap_config -d '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp3-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
With MQTT on $PREFIX/wifi/ap_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/ap_config_update -m '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
| Name | Description |
|---|---|
enable_apbool | Indicates whether the access point should be enabled.
|
ap_fallback_onlybool | Indicates whether the access point should only be enabled if Wi-Fi and LAN connections cannot be established. Ignored if enable_ap is false.
|
ssidstring | SSID to which devices should connect. |
hide_ssidbool | true if the SSID should be hidden, otherwise false. |
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. |
channelint | Channel on which the access point should be accessible. Valid values are 1 to 13, or 0 if an unoccupied channel should be selected at startup. |
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. |
gatewaystring | Gateway address the device should use in the configured network. |
subnetstring | Subnet mask the device should use in the configured network. |
wifi/scan_results
The Wi-Fi networks found as a result of a search triggered by wifi/scan.
# $HOST e.g. warp3-AbCd
curl http://$HOST/wifi/scan_results
[
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0C",
"rssi": -43,
"channel": 9,
"encryption": 3
},
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0D",
"rssi": -43,
"channel": 13,
"encryption": 3
},
{
"ssid": "Anderes WLAN",
"bssid": "C0:FF:EE:4E:5A:0C",
"rssi": -75,
"channel": 1,
"encryption": 3
}
]
Zwei Repeater des selben WLANs haben die gleiche SSID, aber unterschiedliche BSSIDs.
Durch das bssid_lock in wifi/sta_config kann eine Verbindung zu einem spezifischen Repeater
erzwungen werden.
Only supported by the HTTP API
| Index | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[..]object |
|
wifi/state
The current Wi-Fi state.
{
"connection_state": 3,
"connection_start": 10117,
"connection_end": 0,
"ap_state": 2,
"ap_bssid": "C4:5B:BE:C0:FF:EE",
"sta_ip": "10.1.2.3",
"sta_subnet": "255.255.255.0",
"sta_rssi": -38,
"sta_bssid": "71:21:CE:12:F0:12"
}
| Name | Description |
|---|---|
connection_stateint | State of the connection to the configured Wi-Fi. See
|
ap_stateint | State of the Wi-Fi access point. See
|
ap_bssidstring | BSSID of the Wi-Fi access point. |
ap_sta_countint | Number of devices currently connected to the Wi-Fi access point. |
sta_ipstring | Current IP of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_subnetstring | Current subnet mask of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_rssiint | The current reception quality. 0 if no connection exists, otherwise negative. Values closer to 0 indicate better reception. |
sta_bssidstring | The BSSID of the remote station to which the device is connected. |
connection_startint (ms) | Time in milliseconds when the last connection was established. |
connection_endint (ms) | Time in milliseconds when the last connection was disconnected. |
wifi/scan
Triggers a scan for Wi-Fi networks. The scan results can currently only be queried via HTTP.
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
wifi/sta_config
The Wi-Fi connection configuration.
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
curl http://$HOST/wifi/sta_config -d '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
With MQTT on $PREFIX/wifi/sta_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/sta_config_update -m '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_stabool | Indicates whether a Wi-Fi connection to the configured network should be established.
| ||||||||||||||||||||||||
ssidstring | SSID to which the device should connect. | ||||||||||||||||||||||||
bssidint[6] | BSSID to which the device should connect. This entry is optional and can be left empty, but is required for bssid_lock. | ||||||||||||||||||||||||
bssid_lockbool | Specifies whether to connect only to the Wi-Fi network with the specified BSSID. Leave disabled if repeaters or similar should be used.
| ||||||||||||||||||||||||
enable_11bbool | Specifies whether the outdated and slow 802.11b mode may be used. This also slows down other devices connected to the Wi-Fi, but can slightly improve reception quality and connection robustness.
| ||||||||||||||||||||||||
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. This entry is optional and can be left empty if connecting to an unencrypted Wi-Fi network. | ||||||||||||||||||||||||
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. | ||||||||||||||||||||||||
gatewaystring | Gateway address the device should use in the configured network. | ||||||||||||||||||||||||
subnetstring | Subnet mask the device should use in the configured network. | ||||||||||||||||||||||||
dnsstring | DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
dns2string | Alternative DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
wpa_eap_configUnion | WPA Enterprise configuration
null: WPA Personal
|
wifi/ap_config
The Wi-Fi access point configuration. Warning! If the access point is disabled and the Wi-Fi connection or LAN connection cannot be established or was not configured, the ESP can only be reached via a factory reset! We recommend always leaving the access point in fallback mode.
| Name | Description |
|---|---|
enable_apbool | Indicates whether the access point should be enabled.
|
ap_fallback_onlybool | Indicates whether the access point should only be enabled if Wi-Fi and LAN connections cannot be established. Ignored if enable_ap is false.
|
ssidstring | SSID to which devices should connect. |
hide_ssidbool | true if the SSID should be hidden, otherwise false. |
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. |
channelint | Channel on which the access point should be accessible. Valid values are 1 to 13, or 0 if an unoccupied channel should be selected at startup. |
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. |
gatewaystring | Gateway address the device should use in the configured network. |
subnetstring | Subnet mask the device should use in the configured network. |
wifi/scan_results
The Wi-Fi networks found as a result of a search triggered by wifi/scan.
# $HOST e.g. wem-AbCd
curl http://$HOST/wifi/scan_results
[
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0C",
"rssi": -43,
"channel": 9,
"encryption": 3
},
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0D",
"rssi": -43,
"channel": 13,
"encryption": 3
},
{
"ssid": "Anderes WLAN",
"bssid": "C0:FF:EE:4E:5A:0C",
"rssi": -75,
"channel": 1,
"encryption": 3
}
]
Zwei Repeater des selben WLANs haben die gleiche SSID, aber unterschiedliche BSSIDs.
Durch das bssid_lock in wifi/sta_config kann eine Verbindung zu einem spezifischen Repeater
erzwungen werden.
Only supported by the HTTP API
| Index | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[..]object |
|
wifi/state
The current Wi-Fi state.
{
"connection_state": 3,
"connection_start": 10117,
"connection_end": 0,
"ap_state": 2,
"ap_bssid": "C4:5B:BE:C0:FF:EE",
"sta_ip": "10.1.2.3",
"sta_subnet": "255.255.255.0",
"sta_rssi": -38,
"sta_bssid": "71:21:CE:12:F0:12"
}
| Name | Description |
|---|---|
connection_stateint | State of the connection to the configured Wi-Fi. See
|
ap_stateint | State of the Wi-Fi access point. See
|
ap_bssidstring | BSSID of the Wi-Fi access point. |
ap_sta_countint | Number of devices currently connected to the Wi-Fi access point. |
sta_ipstring | Current IP of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_subnetstring | Current subnet mask of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_rssiint | The current reception quality. 0 if no connection exists, otherwise negative. Values closer to 0 indicate better reception. |
sta_bssidstring | The BSSID of the remote station to which the device is connected. |
connection_startint (ms) | Time in milliseconds when the last connection was established. |
connection_endint (ms) | Time in milliseconds when the last connection was disconnected. |
wifi/scan
Triggers a scan for Wi-Fi networks. The scan results can currently only be queried via HTTP.
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
wifi/sta_config
The Wi-Fi connection configuration.
# $HOST e.g. wem2-AbCd
Read
curl http://$HOST/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
curl http://$HOST/wifi/sta_config -d '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
With MQTT on $PREFIX/wifi/sta_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/sta_config_update -m '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_stabool | Indicates whether a Wi-Fi connection to the configured network should be established.
| ||||||||||||||||||||||||
ssidstring | SSID to which the device should connect. | ||||||||||||||||||||||||
bssidint[6] | BSSID to which the device should connect. This entry is optional and can be left empty, but is required for bssid_lock. | ||||||||||||||||||||||||
bssid_lockbool | Specifies whether to connect only to the Wi-Fi network with the specified BSSID. Leave disabled if repeaters or similar should be used.
| ||||||||||||||||||||||||
enable_11bbool | Specifies whether the outdated and slow 802.11b mode may be used. This also slows down other devices connected to the Wi-Fi, but can slightly improve reception quality and connection robustness.
| ||||||||||||||||||||||||
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. This entry is optional and can be left empty if connecting to an unencrypted Wi-Fi network. | ||||||||||||||||||||||||
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. | ||||||||||||||||||||||||
gatewaystring | Gateway address the device should use in the configured network. | ||||||||||||||||||||||||
subnetstring | Subnet mask the device should use in the configured network. | ||||||||||||||||||||||||
dnsstring | DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
dns2string | Alternative DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
wpa_eap_configUnion | WPA Enterprise configuration
null: WPA Personal
|
wifi/ap_config
The Wi-Fi access point configuration. Warning! If the access point is disabled and the Wi-Fi connection or LAN connection cannot be established or was not configured, the ESP can only be reached via a factory reset! We recommend always leaving the access point in fallback mode.
| Name | Description |
|---|---|
enable_apbool | Indicates whether the access point should be enabled.
|
ap_fallback_onlybool | Indicates whether the access point should only be enabled if Wi-Fi and LAN connections cannot be established. Ignored if enable_ap is false.
|
ssidstring | SSID to which devices should connect. |
hide_ssidbool | true if the SSID should be hidden, otherwise false. |
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. |
channelint | Channel on which the access point should be accessible. Valid values are 1 to 13, or 0 if an unoccupied channel should be selected at startup. |
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. |
gatewaystring | Gateway address the device should use in the configured network. |
subnetstring | Subnet mask the device should use in the configured network. |
wifi/scan_results
The Wi-Fi networks found as a result of a search triggered by wifi/scan.
# $HOST e.g. wem2-AbCd
curl http://$HOST/wifi/scan_results
[
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0C",
"rssi": -43,
"channel": 9,
"encryption": 3
},
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0D",
"rssi": -43,
"channel": 13,
"encryption": 3
},
{
"ssid": "Anderes WLAN",
"bssid": "C0:FF:EE:4E:5A:0C",
"rssi": -75,
"channel": 1,
"encryption": 3
}
]
Zwei Repeater des selben WLANs haben die gleiche SSID, aber unterschiedliche BSSIDs.
Durch das bssid_lock in wifi/sta_config kann eine Verbindung zu einem spezifischen Repeater
erzwungen werden.
Only supported by the HTTP API
| Index | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[..]object |
|
wifi/state
The current Wi-Fi state.
{
"connection_state": 3,
"connection_start": 10117,
"connection_end": 0,
"ap_state": 2,
"ap_bssid": "C4:5B:BE:C0:FF:EE",
"sta_ip": "10.1.2.3",
"sta_subnet": "255.255.255.0",
"sta_rssi": -38,
"sta_bssid": "71:21:CE:12:F0:12"
}
| Name | Description |
|---|---|
connection_stateint | State of the connection to the configured Wi-Fi. See
|
ap_stateint | State of the Wi-Fi access point. See
|
ap_bssidstring | BSSID of the Wi-Fi access point. |
ap_sta_countint | Number of devices currently connected to the Wi-Fi access point. |
sta_ipstring | Current IP of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_subnetstring | Current subnet mask of the device in the configured network. 0.0.0.0 if no connection exists. |
sta_rssiint | The current reception quality. 0 if no connection exists, otherwise negative. Values closer to 0 indicate better reception. |
sta_bssidstring | The BSSID of the remote station to which the device is connected. |
connection_startint (ms) | Time in milliseconds when the last connection was established. |
connection_endint (ms) | Time in milliseconds when the last connection was disconnected. |
wifi/scan
Triggers a scan for Wi-Fi networks. The scan results can currently only be queried via HTTP.
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
wifi/sta_config
The Wi-Fi connection configuration.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
curl http://$HOST/wifi/sta_config -d '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/sta_config
{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}
Write
With MQTT on $PREFIX/wifi/sta_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/sta_config_update -m '{
"enable_sta": true,
"ssid": "Mein WLAN",
"bssid": [12, 34, 56, 78, 90, 12],
"bssid_lock": true,
"passphrase": null,
"ip": "0.0.0.0",
"gateway": "0.0.0.0",
"subnet": "0.0.0.0",
"dns": "0.0.0.0",
"dns2": "0.0.0.0",
"wpa_eap_config": [0, null]
}'
| Name | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enable_stabool | Indicates whether a Wi-Fi connection to the configured network should be established.
| ||||||||||||||||||||||||
ssidstring | SSID to which the device should connect. | ||||||||||||||||||||||||
bssidint[6] | BSSID to which the device should connect. This entry is optional and can be left empty, but is required for bssid_lock. | ||||||||||||||||||||||||
bssid_lockbool | Specifies whether to connect only to the Wi-Fi network with the specified BSSID. Leave disabled if repeaters or similar should be used.
| ||||||||||||||||||||||||
enable_11bbool | Specifies whether the outdated and slow 802.11b mode may be used. This also slows down other devices connected to the Wi-Fi, but can slightly improve reception quality and connection robustness.
| ||||||||||||||||||||||||
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. This entry is optional and can be left empty if connecting to an unencrypted Wi-Fi network. | ||||||||||||||||||||||||
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. | ||||||||||||||||||||||||
gatewaystring | Gateway address the device should use in the configured network. | ||||||||||||||||||||||||
subnetstring | Subnet mask the device should use in the configured network. | ||||||||||||||||||||||||
dnsstring | DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
dns2string | Alternative DNS server address the device should use in the configured network. | ||||||||||||||||||||||||
wpa_eap_configUnion | WPA Enterprise configuration
null: WPA Personal
|
wifi/ap_config
The Wi-Fi access point configuration. Warning! If the access point is disabled and the Wi-Fi connection or LAN connection cannot be established or was not configured, the ESP can only be reached via a factory reset! We recommend always leaving the access point in fallback mode.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
curl http://$HOST/wifi/ap_config -d '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/wifi/ap_config
{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "warp-AbCd",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}
Write
With MQTT on $PREFIX/wifi/ap_config_update
mosquitto_pub -h $BROKER -t $PREFIX/wifi/ap_config_update -m '{
"enable_ap": true,
"ap_fallback_only": true,
"ssid": "wallbox_garage",
"hide_ssid": false,
"passphrase": null,
"channel": 0,
"ip": "10.0.0.1",
"gateway": "10.0.0.1",
"subnet": "255.255.255.0"
}'
| Name | Description |
|---|---|
enable_apbool | Indicates whether the access point should be enabled.
|
ap_fallback_onlybool | Indicates whether the access point should only be enabled if Wi-Fi and LAN connections cannot be established. Ignored if enable_ap is false.
|
ssidstring | SSID to which devices should connect. |
hide_ssidbool | true if the SSID should be hidden, otherwise false. |
passphrasestring | The Wi-Fi passphrase. Maximum 63 bytes. |
channelint | Channel on which the access point should be accessible. Valid values are 1 to 13, or 0 if an unoccupied channel should be selected at startup. |
ipstring | IP address the device should use in the configured network. This entry and the following are optional and can be passed as "0.0.0.0" if automatic IP address assignment (DHCP) should be used. |
gatewaystring | Gateway address the device should use in the configured network. |
subnetstring | Subnet mask the device should use in the configured network. |
wifi/scan_results
The Wi-Fi networks found as a result of a search triggered by wifi/scan.
# $HOST e.g. warp-AbCd
curl http://$HOST/wifi/scan_results
[
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0C",
"rssi": -43,
"channel": 9,
"encryption": 3
},
{
"ssid": "Mein WLAN",
"bssid": "0C:22:38:4E:5A:0D",
"rssi": -43,
"channel": 13,
"encryption": 3
},
{
"ssid": "Anderes WLAN",
"bssid": "C0:FF:EE:4E:5A:0C",
"rssi": -75,
"channel": 1,
"encryption": 3
}
]
Zwei Repeater des selben WLANs haben die gleiche SSID, aber unterschiedliche BSSIDs.
Durch das bssid_lock in wifi/sta_config kann eine Verbindung zu einem spezifischen Repeater
erzwungen werden.
Only supported by the HTTP API
| Index | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[..]object |
|