Add MESHTASTIC_EXCLUDE_SOCKETAPI (#5729)

MESHTASTIC_EXCLUDE_SOCKETAPI disables the API Server when set.

Co-authored-by: mverch67 <manuel.verch@gmx.de>
Co-authored-by: GUVWAF <thijs@havinga.eu>
This commit is contained in:
Tom Fifield
2025-01-03 09:01:10 +08:00
committed by GitHub
parent b41efc17ba
commit 9d710041c4
2 changed files with 4 additions and 1 deletions

View File

@@ -106,7 +106,9 @@ static void onNetworkConnected()
#if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_WEBSERVER
initWebServer();
#endif
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
initApiServer();
#endif
APStartupComplete = true;
}