title: Custom Title sidebar_label: Custom Title (Pro)
:::danger Pro Feature This is an exclusive feature of WebSerial Pro. Check it out here. :::
The setTitle()
function is a method provided by the WebSerial Pro library. This title is displayed at the top of the webserial interface/webpage, providing a user-friendly and customizable interface for managing firmware updates.
void setTitle(const char* title);
#include <WebSerial.h>
void setup() {
...
// Set the title of your webserial terminal
WebSerial.setTitle("Remote Terminal - XYZ Inc");
}
void loop() {
...
}
setup()
function of your sketch, initialize the WebSerial library using WebSerial.begin()
.setTitle()
function to set a meaningful title for your webserial interface. This title will be displayed at the top of the webserial interface/webpage when users access it.