Network Configuration
network/config
General network settings
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/network/config
{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
curl http://$HOST/network/config -d '{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/network/config
{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
With MQTT on $PREFIX/network/config_update
mosquitto_pub -h $BROKER -t $PREFIX/network/config_update -m '{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }'
| Name | Description |
|---|---|
hostnamestring | Hostname the device should use in all configured networks. |
enable_mdnsbool | Indicates whether the device should advertise the web interface via mDNS on the network. Via mDNS, the web interface will be accessible at http://[hostname].local (e.g., http://warp2-AbC.local). |
web_server_portint | Listen port of the web interface. Typically 80 |
network/state
General network state
| Name | Description |
|---|---|
connectedbool | Indicates whether the device is connected to a network. |
network/config
General network settings
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/network/config
{ "hostname": "warp2-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
curl http://$HOST/network/config -d '{ "hostname": "warp2-AbCd", "enable_mdns": true, "web_server_port": 80 }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/network/config
{ "hostname": "warp2-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
With MQTT on $PREFIX/network/config_update
mosquitto_pub -h $BROKER -t $PREFIX/network/config_update -m '{ "hostname": "warp2-AbCd", "enable_mdns": true, "web_server_port": 80 }'
| Name | Description |
|---|---|
hostnamestring | Hostname the device should use in all configured networks. |
enable_mdnsbool | Indicates whether the device should advertise the web interface via mDNS on the network. Via mDNS, the web interface will be accessible at http://[hostname].local (e.g., http://warp2-AbC.local). |
web_server_portint | Listen port of the web interface. Typically 80 |
network/state
General network state
| Name | Description |
|---|---|
connectedbool | Indicates whether the device is connected to a network. |
network/config
General network settings
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/network/config
{ "hostname": "warp3-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
curl http://$HOST/network/config -d '{ "hostname": "warp3-AbCd", "enable_mdns": true, "web_server_port": 80 }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/network/config
{ "hostname": "warp3-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
With MQTT on $PREFIX/network/config_update
mosquitto_pub -h $BROKER -t $PREFIX/network/config_update -m '{ "hostname": "warp3-AbCd", "enable_mdns": true, "web_server_port": 80 }'
| Name | Description |
|---|---|
hostnamestring | Hostname the device should use in all configured networks. |
enable_mdnsbool | Indicates whether the device should advertise the web interface via mDNS on the network. Via mDNS, the web interface will be accessible at http://[hostname].local (e.g., http://warp2-AbC.local). |
web_server_portint | Listen port of the web interface. Typically 80 |
network/state
General network state
| Name | Description |
|---|---|
connectedbool | Indicates whether the device is connected to a network. |
network/config
General network settings
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/network/config
{ "hostname": "wem-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
curl http://$HOST/network/config -d '{ "hostname": "wem-AbCd", "enable_mdns": true, "web_server_port": 80 }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/network/config
{ "hostname": "wem-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
With MQTT on $PREFIX/network/config_update
mosquitto_pub -h $BROKER -t $PREFIX/network/config_update -m '{ "hostname": "wem-AbCd", "enable_mdns": true, "web_server_port": 80 }'
| Name | Description |
|---|---|
hostnamestring | Hostname the device should use in all configured networks. |
enable_mdnsbool | Indicates whether the device should advertise the web interface via mDNS on the network. Via mDNS, the web interface will be accessible at http://[hostname].local (e.g., http://warp2-AbC.local). |
web_server_portint | Listen port of the web interface. Typically 80 |
network/state
General network state
| Name | Description |
|---|---|
connectedbool | Indicates whether the device is connected to a network. |
network/config
General network settings
| Name | Description |
|---|---|
hostnamestring | Hostname the device should use in all configured networks. |
enable_mdnsbool | Indicates whether the device should advertise the web interface via mDNS on the network. Via mDNS, the web interface will be accessible at http://[hostname].local (e.g., http://warp2-AbC.local). |
web_server_portint | Listen port of the web interface. Typically 80 |
network/state
General network state
| Name | Description |
|---|---|
connectedbool | Indicates whether the device is connected to a network. |
network/config
General network settings
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/network/config
{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
curl http://$HOST/network/config -d '{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/network/config
{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }
Write
With MQTT on $PREFIX/network/config_update
mosquitto_pub -h $BROKER -t $PREFIX/network/config_update -m '{ "hostname": "warp-AbCd", "enable_mdns": true, "web_server_port": 80 }'
| Name | Description |
|---|---|
hostnamestring | Hostname the device should use in all configured networks. |
enable_mdnsbool | Indicates whether the device should advertise the web interface via mDNS on the network. Via mDNS, the web interface will be accessible at http://[hostname].local (e.g., http://warp2-AbC.local). |
web_server_portint | Listen port of the web interface. Typically 80 |
network/state
General network state
| Name | Description |
|---|---|
connectedbool | Indicates whether the device is connected to a network. |