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.
Arduino IDE
To enable High Performance Mode in Arduino IDE, follow these steps:
- Open the
WebSerial.hfile located in your Arduino libraries folder. - At the top of the file, just after the
#includestatements, add the following line:
#define WSL_HIGH_PERF 1- Save the file and restart your Arduino IDE to apply the changes.
Last updated on