Get/Set WebSocket state which can be ON, OFF, CLOSE
Input
[ESP160]<mode> 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 -
mode
- if mode is empty, it will display current mode
- if mode is not empty, it will set the setting mode:
ON
,OFF
orCLOSE
Output
- In json format
cmd
Id of requested command, should be160
status
status of command, should beok
data
content of response, here the mode