Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created March 20, 2025 14:42
Show Gist options
  • Select an option

  • Save esmarr58/30aa859912c52ffc957773f447507649 to your computer and use it in GitHub Desktop.

Select an option

Save esmarr58/30aa859912c52ffc957773f447507649 to your computer and use it in GitHub Desktop.
void MainWindow::loop(){
//Verificar si el websocket esta abierto
if(m_connected == false){
m_webSocket->open(QUrl("ws://192.168.0.105/ws")); // Reemplaza <ESP32_IP> con la IP de tu ESP32
m_connected = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment