Set Station Password
[ESP101]<password> <NOPASSWORD> 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
-
password
- if password is not empty, it will set the password
-
NOPASSWORD
- if NOPASSWORD is present, it will remove the password
-
if password is empty and NOPASSWORD is not present, it will raise error: `Password not displayable“
Output
Section titled “Output”- In json format:
{ "cmd":"101", "status":"ok", "data":"ok"}cmdId of requested command, should be101statusstatus of command, should beokdatacontent of response, hereok
if error :
- in json format:
{"cmd":"101","status":"error","data":"Password not displayable"}- plain text:
error: Password not displayable