https://github.com/jakubandrysek/remote-serial-example
:mag: Remote serial in Lorris for ESP32
https://github.com/jakubandrysek/remote-serial-example
cpp debug esp32 lorris platformio proxy
Last synced: 25 days ago
JSON representation
:mag: Remote serial in Lorris for ESP32
- Host: GitHub
- URL: https://github.com/jakubandrysek/remote-serial-example
- Owner: JakubAndrysek
- License: mit
- Created: 2020-05-14T22:52:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-15T12:53:08.000Z (about 6 years ago)
- Last Synced: 2025-06-04T20:27:21.083Z (12 months ago)
- Topics: cpp, debug, esp32, lorris, platformio, proxy
- Language: C++
- Homepage:
- Size: 2.22 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Navigation
- [Navigation](#navigation)
- [Remote serial in Lorris for ESP32](#remote-serial-in-lorris-for-esp32)
- [Example code how to use Lorris terminal with ESP32 as remote Data-debug display](#example-code-how-to-use-lorris-terminal-with-esp32-as-remote-data-debug-display)
- [Setup Lorris](#setup-lorris)
- [Setup software](#setup-software)
# Remote serial in Lorris for ESP32
## Example code how to use Lorris terminal with ESP32 as remote Data-debug display

# Setup [Lorris](https://tasssadar.github.io/Lorris)
1. Go to [https://tasssadar.github.io/Lorris](https://tasssadar.github.io/Lorris)

2. Download and install Lorris, open it

3. Clic to Proxy

4. Click to `+` and `Add TCP client`

5. Set name, Host: YOUR_IP, and Port: 0-65535 for the TCP Data clinet

6. Clic to `Start listening`, enable Proxy tunel and then click to `Connect`

7. Data TCP is enabled

8. Then clic to `Menu` -> `File` -> `New` -> `Terminal` and chose Data Tunel

9. Now, you are connected to the Data tunel. Then clic to `Menu` -> `File` -> `New` -> `Proxy`

10. Set name, Host: YOUR_IP, and Port: 0-65535 for the TCP Debug clinet

11. Clic to Start listening, enable Proxy tunel and then click to Connect

12. Then clic to `Menu` -> `File` -> `New` -> `Terminal` and chose Debug Tunel

13. Now, you are connected to the Debug tunel.

14. You can drag the table and split to sides (data, debug, serial)
# Setup software
1. Open `main.cpp` and edit connection settings
```cpp
// Setup connection
#define SSID "WiFi_SSID"
#define PASSWORD "WiFi_PASSWORD"
static const IPAddress Debug_IP { 192, 168, 0, 13 }; //IP adress of your PC with Lorris
static const uint16_t Debug_port = 12345; //Proxy debug port
static const uint16_t Data_port = 12346; //Proxy data port
```
2. Customize the programe
```cpp
void loop() {
int runtime = millis()/1000;
Serial.println(String("Running for: " + String(runtime) + " seconds"));
debug.println(String("Running for: " + String(runtime) + " seconds"));
data.println(String("WiFi strength: " + String(WiFi.RSSI()) ));
delay(1000);
}
```
3. Upload program to the ESP32
4. Have a fun :blush: