RemoteSerial is a web-based serial console designed for ESP8266 & ESP32 allowing easy debugging, monitoring and control.
- Uses websockets
- Realtime logging and remote control
- Supports multiple clients
- Web console supports ANSI colours and formatting
For ESP8266:
- ESP8266 Arduino Core
- ESPAsyncTCP
- ESPAsyncWebServer
For ESP32:
- ESP32 Arduino Core
- AsyncTCP
- ESPAsyncWebServer
Go to Sketch > Include Library > Library Manager > Search
for RemoteSerial > Install
For Windows: download the repository and extract the .zip in Documents > Arduino > Libraries > place RemoteSerial folder here
For Linux: download the repository and extract the .zip in Sketchbook > Libraries > place RemoteSerial folder here
Insstall these libraries too:
Download the Repository and go to Sketch > Include Library > Add .zip Library > Select the Downloaded .zip file.
The RemoteSerial object works very much like Serial object used in the Arduino eco system.
Please look at the basic demo here to see how to use it.
There are 4 main functions
print
- transmits data to theRemoteSerial
console without appending any newline character.println
- same as above but adds a newline character at the end.printf
- transmits formatted text to the RemoteSerial console. You can control the formatting of variables like numbers, strings, and other data types, including specifying the number of decimal places, padding with zeros, and more.begin
- starts listening for web requests, you must supply a validAsyncWebServer
object and an optional path where clients can find the serial console
You may also output ANSI colour codes that will appear in the console as formatted text.
To open the console, navigate to <IP Address>/remoteserial
in your web browser. Replace <IP Address>
with your device's actual IP. If you prefer a different path, you can specify it when initializing RemoteSerial
using the RemoteSerial.begin()
function.