ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
#!/bin/bash
esphome compile config/_02_host_VNC_only.yaml
if [ $? -eq 0 ]; then
echo "Compile successful, running..."
./config/.esphome/build/esp32-test-vnc-host/.pioenvs/esp32-test-vnc-host/program
else
echo "Compile failed"
fi
Runs fine and I can connect with a VNC client (TightVNC client v2.8.81, Windows). When I exit the client (close client's window with X) I see the host binary of ESPHome also terminating on the server, Not consistent, but happens in 95% of the cases. When it doesn't crash, I can't connect the second time with the client anymore. I can quit the application by pressing Ctrl+C in the console. It also seems to depend on the time, eg. quitting the client after longer sessions always crash the binary, short sessions not always.
I run ESPHome in host mode like this:
Runs fine and I can connect with a VNC client (TightVNC client v2.8.81, Windows). When I exit the client (close client's window with X) I see the host binary of ESPHome also terminating on the server, Not consistent, but happens in 95% of the cases. When it doesn't crash, I can't connect the second time with the client anymore. I can quit the application by pressing Ctrl+C in the console. It also seems to depend on the time, eg. quitting the client after longer sessions always crash the binary, short sessions not always.
Config to reproduce: