From be008a28768de3e2476cd6d09ff63da35cdbc1b1 Mon Sep 17 00:00:00 2001 From: Kelvin Ly Date: Tue, 18 Mar 2025 22:28:13 -0400 Subject: [PATCH] SSH connection logic seems to be working correctly --- shroom-controller/main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shroom-controller/main/main.c b/shroom-controller/main/main.c index 0dc06d0..70fe3d5 100644 --- a/shroom-controller/main/main.c +++ b/shroom-controller/main/main.c @@ -181,12 +181,12 @@ void main_task(void* args) { } ESP_LOGE(TAG, "executing command..."); - rc = libssh2_channel_exec(channel, "./runtest.sh"); + rc = libssh2_channel_exec(channel, "./runtest"); if (rc) { ESP_LOGE(TAG, "could not open channel"); } - //libssh2_session_set_timeout(session, 20); + libssh2_session_set_timeout(session, 100); ESP_LOGE(TAG, "waiting for results..."); while (!libssh2_channel_eof(channel)) { ESP_LOGE(TAG, "waiting for read loop");