An open API service indexing awesome lists of open source software.

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

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

![](docs/Terminal-text.png)

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

![](docs/0.png)
2. Download and install Lorris, open it

![](docs/1.png)
3. Clic to Proxy

![](docs/2.png)
4. Click to `+` and `Add TCP client`

![](docs/3.png)
5. Set name, Host: YOUR_IP, and Port: 0-65535 for the TCP Data clinet

![](docs/4.png)
6. Clic to `Start listening`, enable Proxy tunel and then click to `Connect`

![](docs/5.png)
7. Data TCP is enabled

![](docs/6.png)
8. Then clic to `Menu` -> `File` -> `New` -> `Terminal` and chose Data Tunel

![](docs/7.png)
9. Now, you are connected to the Data tunel. Then clic to `Menu` -> `File` -> `New` -> `Proxy`

![](docs/8.png)
10. Set name, Host: YOUR_IP, and Port: 0-65535 for the TCP Debug clinet

![](docs/9.png)
11. Clic to Start listening, enable Proxy tunel and then click to Connect

![](docs/10.png)
12. Then clic to `Menu` -> `File` -> `New` -> `Terminal` and chose Debug Tunel

![](docs/11.png)
13. Now, you are connected to the Debug tunel.

![](docs/13.png)
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: