[ESP500]
Section titled “[ESP500]”Syntax:
[ESP500] json=<no> pwd=<user/admin password>- display the current level / authenticate[ESP500]LOGOUT json=<no>- log out
Description: get authentication status, authenticate or log out a stream client (Telnet, WebSocket data /wsdata, USB CDC)
pwd=<user or admin password>- authenticates the client; any ESPXXX command withpwd=does the same,[ESP500]is the recommended one because it answers the resulting level. With a wrong password, the command answersWrong passwordand the client is back toguest.LOGOUT- clears the session of this client only: the connection stays open and the client isguestagain (it must sendpwd=before its next protected command). A file transfer it owns on/wsdatais aborted.
Output:
- plain text:
admin,user,guest,Wrong password, orokforLOGOUT - json:
{"cmd":"500","status":"ok","data":"admin"},{"cmd":"500","status":"error","data":"Wrong password"}