Custom Title
Pro Feature
This is an exclusive feature of WebSerial Pro. Check it out here.
Overview
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.
Syntax
void setTitle(const char* title);
Example
#include <WebSerial.h>
void setup() {
...
// Set the title of your webserial terminal
WebSerial.setTitle("Remote Terminal - XYZ Inc");
}
void loop() {
...
}
Usage
- Include the WebSerial library in your Arduino sketch.
- In the
setup()
function of your sketch, initialize the WebSerial library usingWebSerial.begin()
. - Use the
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. - Continue with the rest of your sketch's setup and loop functions.