Set USB Serial baudrate for main serial communication. Only on ESP32 S2-S3 boards.

Input

[ESP902]<baudrate> json=<no> pwd=<admin password>

  • json=no the output format can be in JSON or plain text

  • baudrate

  • if baudrate is empty, it will display current baudrate
  • if baudrate is not empty, it will set the baudrate currently only these baudrates are supported:

    • 9600
    • 19200
    • 38400
    • 57600
    • 74880
    • 115200
    • 230400
    • 250000
    • 500000
    • 921600
    • 1958400
  • pwd= the admin password if authentication is enabled

Output

  • In json format
{
   "cmd":"902",
   "status":"ok",
   "data":"115200"
}
  • cmd Id of requested command, should be 902
  • status status of command, should be ok
  • data content of response, here the current baudrate

  • plain text format

115200