SSH connection logic seems to be working correctly

This commit is contained in:
Kelvin Ly 2025-03-18 22:28:13 -04:00
parent f0e7bbe358
commit be008a2876
1 changed files with 2 additions and 2 deletions

View File

@ -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");