supercrab / RemoteSerial

Remote serial monitoring tool compatible with ESP8266 and ESP32.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Last Commit Build Status

RemoteSerial Library

RemoteSerial is a web-based serial console designed for ESP8266 & ESP32 allowing easy debugging, monitoring and control.

Preview

RemoteSerial screenshot

Features

  • Uses websockets
  • Realtime logging and remote control
  • Supports multiple clients
  • Web console supports ANSI colours and formatting

Dependencies

For ESP8266:

  • ESP8266 Arduino Core
  • ESPAsyncTCP
  • ESPAsyncWebServer

For ESP32:

  • ESP32 Arduino Core
  • AsyncTCP
  • ESPAsyncWebServer

Installation

Using The Arduino IDE

Go to Sketch > Include Library > Library Manager > Search for RemoteSerial > Install

Manual 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:

Manually using IDE

Download the Repository and go to Sketch > Include Library > Add .zip Library > Select the Downloaded .zip file.

Documentation

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 the RemoteSerial 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 valid AsyncWebServer 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.

Remote Serial Console

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.

About

Remote serial monitoring tool compatible with ESP8266 and ESP32.

License:GNU General Public License v3.0


Languages

Language:C 80.2%Language:C++ 19.8%