diff --git a/src/mesh/api/ServerAPI.cpp b/src/mesh/api/ServerAPI.cpp index e28e4c815..1542ca18a 100644 --- a/src/mesh/api/ServerAPI.cpp +++ b/src/mesh/api/ServerAPI.cpp @@ -52,7 +52,7 @@ template int32_t APIServerPort::runOnce() auto client = U::available(); #endif #else - auto client = U::available(); + auto client = U::accept(); #endif if (client) { // Close any previous connection (see FIXME in header file) @@ -78,4 +78,4 @@ template int32_t APIServerPort::runOnce() waitTime = 100; #endif return 100; // only check occasionally for incoming connections -} +} \ No newline at end of file