Configuration Settings
Wi-FI~
ssid
~
Set network name of the access point to connect to.
pass
~
Set the optional password for the access point to connect to.
MQTT~
hostname
~
Set the hostname of the device and mqtt topic for the node to hasp/<nodename>/
mqtthost
~
Set the IP address or hostname of the mqtt broker.
mqttport
~
Set the port of the mqtt broker.
mqttuser
~
Set the optional username for the mqtt broker.
mqttpass
~
Set the optional password for the mqtt broker.
config/submodule~
You can get or set the configuration of an openHASP submodule in json format.
To get the configuration, use the command config/<submodule>
:
config/wifi
config/mqtt
config/http
config/mdns
config/hasp
config/gui
config/debug
config/gpio
The result will be published to hasp/<nodename>/state/config
. Passwords will be omitted from the result.
To update the configuration simply issue the same command config/<submodule>
with updated json payload.
Example
config/gui {"idle2":0}
disable long idle (don't turn off the screen completely)
config/debug {"tele":300}
set the telemetry period to 300 seconds
config/hasp {"startdim":255}
to set the startup brightness to 255