Custom Title
This feature is only available in WebSerial Pro
The setTitle() function is a method provided by the WebSerial Pro library, this title is displayed at the top of WebSerial terminal by your browser.
Implementation
- Include the WebSerial Pro library in your Arduino sketch.
- In the
setup()function of your sketch, initialize the WebSerial Pro library usingWebSerial.begin(). - Use the
setTitle()function to set a meaningful title for your WebSerial terminal. This title will be displayed at the top when users access it.
Reference
#include <WebSerialPro.h>
void setup() {
// Initialize the WebSerial Pro library
WebSerial.begin();
// Set the custom title for WebSerial terminal
WebSerial.setTitle("Custom Title Here");
}
void loop() {
// Your main program loop
}Last updated on