SSH connection logic seems to be working correctly
This commit is contained in:
parent
f0e7bbe358
commit
be008a2876
|
@ -181,12 +181,12 @@ void main_task(void* args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ESP_LOGE(TAG, "executing command...");
|
ESP_LOGE(TAG, "executing command...");
|
||||||
rc = libssh2_channel_exec(channel, "./runtest.sh");
|
rc = libssh2_channel_exec(channel, "./runtest");
|
||||||
if (rc) {
|
if (rc) {
|
||||||
ESP_LOGE(TAG, "could not open channel");
|
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...");
|
ESP_LOGE(TAG, "waiting for results...");
|
||||||
while (!libssh2_channel_eof(channel)) {
|
while (!libssh2_channel_eof(channel)) {
|
||||||
ESP_LOGE(TAG, "waiting for read loop");
|
ESP_LOGE(TAG, "waiting for read loop");
|
||||||
|
|
Loading…
Reference in New Issue