Closed SolarDaniel closed 8 months ago
@SolarDaniel Thank you for that contribution. I'll not include this into the main branch, but I'll leave it here for others to draw inspiration from.
However, I've thought about this as well, but would need to pipe all serial info to a websocket, including the ESP_LOG debug statements. Maybe I'll come back to this at a later time.
Sorry, I'm only a retired hobbyist and not (yet) familiar with github and don't know how to fork and contribute with pull requests. But maybe someone is interested in what I did and maybe it would be a nice extension to features.
WebSerial.zip
WebSerialClass inherits from Arduino Print and can be used like Serial.print() and all other print functions. It opens a WebSocketClient and sends to clients instead to HwSerial.
On the UI side there's a
How to use: In main.cpp
Anywhere else
I hope someone likes it. For me it is very helpfull, cause all my serial ports are used. Probably it needs some professional improvement.