Set / Display Hostname
Input
[ESP112]<hostname> json=<no> pwd=<admin/user password>
-
json=no the output format can be in JSON or plain text
-
pwd=
the admin password if authentication is enabled -
hostname
- if hostname is empty, it will display current hostname
- if hostname is not empty, it will set the hostname
Output
- In json format
cmd
Id of requested command, should be112
status
status of command, should beok
data
content of response, here the hostname