Skip to content

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 with pwd= does the same, [ESP500] is the recommended one because it answers the resulting level. With a wrong password, the command answers Wrong password and the client is back to guest.
  • LOGOUT - clears the session of this client only: the connection stays open and the client is guest again (it must send pwd= before its next protected command). A file transfer it owns on /wsdata is aborted.

Output:

  • plain text: admin, user, guest, Wrong password, or ok for LOGOUT
  • json: {"cmd":"500","status":"ok","data":"admin"}, {"cmd":"500","status":"error","data":"Wrong password"}