Skip to Content
Getting StartedHigh Performance Mode

High Performance Mode

WebSerial comes with an inbuilt High Performance Mode that optimizes data transmission for performance-critical applications. This mode should only be used when you require real-time logging and monitoring, as it minimizes latency and maximizes throughput by avoiding any kind of buffering for log messages.

Note

High Performance Mode should only be enabled when necessary, for example when your application is heavily dependent on large logs. Using this mode in scenarios where real-time logging is not required may lead to instability or performance degradation.

To enable High Performance Mode in Arduino IDE, follow these steps:

  1. Open the WebSerial.h file located in your Arduino libraries folder.
  2. At the top of the file, just after the #include statements, add the following line:
#define WSL_HIGH_PERF 1
  1. Save the file and restart your Arduino IDE to apply the changes.
Last updated on
Copyright © 2025 Softt. All rights reserved.