Anniversary Sale · up to 80% off all librariesEnds Nov 9Shop now
SOFTTDocs

Custom Title

Set a custom title for the WebSerial Pro terminal with setTitle().

WebSerial Pro feature. This functionality is available only in the commercial edition of WebSerial.

setTitle() sets the title displayed at the top of the WebSerial Pro terminal. Use it to identify the product or application the terminal belongs to.

Custom terminal title

Set the title

Call setTitle() in setup():

WebSerial.setTitle("Custom Title Here");

Prop

Type

Example

main.cpp
#include <WebSerialPro.h>

// ...

void setup() {
  // ...

  WebSerial.begin(&server);

  // Set the terminal title
  WebSerial.setTitle("WebSerial Pro Demo");

  server.begin();
}

void loop() {
  // ...
  WebSerial.loop();
}

Notes

  • The title is sent to the browser when the terminal connects. Reload the terminal page to see a title changed while the page is open.

On this page