Set / Display Hostname
[ESP112]<hostname> json=<no> pwd=<admin/user password>
-
json=no the output format can be in JSON or plain text
-
pwd=<admin password> 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
Section titled “Output”- In json format
{ "cmd":"112", "status":"ok", "data":"esp3d"}cmdId of requested command, should be112statusstatus of command, should beokdatacontent of response, here the hostname