Skip to Content

Examples

The WebSerial repository provides 4 example setups: Demo, Demo_AP, HighPerf and Logging. These examples showcase how to integrate and use WebSerial into your project with minimal setup, allowing you to pick the best option for your specific needs.

Demo

This example showcases the standard way to integrate WebSerial. This example is suitable for most use-cases and is easy to understand and implement.

Demo_AP

Demo_AP example is similar to Demo example but it creates its own Access Point (AP) instead of connecting to an existing WiFi network. This is useful for scenarios where you want to connect directly to the device without relying on an external WiFi network.

HighPerf

HighPerf example is designed for performance-critical applications. It utilizes advanced techniques to minimize latency and maximize throughput. HighPerf mode doesn’t use any kind of buffering for log messages, ensuring that data is transmitted as quickly as possible. This example is ideal for applications where you require real-time logging and monitoring.

Logging

Logging example demonstrates how to implement logging functionality using WebSerial. This is useful for debugging and monitoring your application. The example shows how to send log messages from your device to the WebSerial interface for real-time monitoring.

You can find those examples in the WebSerial repository .

Last updated on
Copyright © 2025 Softt. All rights reserved.