mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 03:29:17 +00:00
disable serial module and tcp socket api for standalone devices (#5591)
* disable serial module and tcp socket api for standalone devices * just disable webserver, leave wifi available * disable socket api
This commit is contained in:
parent
81fe6b7c7a
commit
5554114d11
@ -66,8 +66,9 @@ static int32_t reconnectETH()
|
||||
syslog.enable();
|
||||
}
|
||||
|
||||
// initWebServer();
|
||||
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
|
||||
initApiServer();
|
||||
#endif
|
||||
|
||||
ethStartupComplete = true;
|
||||
}
|
||||
|
@ -106,7 +106,9 @@ static void onNetworkConnected()
|
||||
#if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_WEBSERVER
|
||||
initWebServer();
|
||||
#endif
|
||||
#if !MESHTASTIC_EXCLUDE_SOCKETAPI
|
||||
initApiServer();
|
||||
#endif
|
||||
APStartupComplete = true;
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,9 @@ build_flags =
|
||||
-D MESHTASTIC_EXCLUDE_CANNEDMESSAGES=1
|
||||
-D MESHTASTIC_EXCLUDE_INPUTBROKER=1
|
||||
-D MESHTASTIC_EXCLUDE_BLUETOOTH=1
|
||||
-D MESHTASTIC_EXCLUDE_WEBSERVER=1
|
||||
-D MESHTASTIC_EXCLUDE_SERIAL=1
|
||||
-D MESHTASTIC_EXCLUDE_SOCKETAPI=1
|
||||
-D INPUTDRIVER_MATRIX_TYPE=1
|
||||
-D USE_PIN_BUZZER=PIN_BUZZER
|
||||
-D USE_SX127x
|
||||
|
@ -36,12 +36,14 @@ board_build.partitions = default_8MB.csv ; must be here for some reason, board.j
|
||||
|
||||
build_flags =
|
||||
${env:seeed-sensecap-indicator.build_flags}
|
||||
-D HAS_TELEMETRY=0
|
||||
-D MESHTASTIC_EXCLUDE_CANNEDMESSAGES=1
|
||||
-D MESHTASTIC_EXCLUDE_INPUTBROKER=1
|
||||
-D MESHTASTIC_EXCLUDE_BLUETOOTH=1
|
||||
-D MESHTASTIC_EXCLUDE_SCREEN=1
|
||||
-D MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
||||
-D MESHTASTIC_EXCLUDE_WEBSERVER=1
|
||||
-D MESHTASTIC_EXCLUDE_SERIAL=1
|
||||
-D MESHTASTIC_EXCLUDE_SOCKETAPI=1
|
||||
-D INPUTDRIVER_BUTTON_TYPE=38
|
||||
-D HAS_TELEMETRY=0
|
||||
-D CONFIG_DISABLE_HAL_LOCKS=1
|
||||
|
@ -31,6 +31,8 @@ build_flags =
|
||||
-D MESHTASTIC_EXCLUDE_INPUTBROKER=1
|
||||
-D MESHTASTIC_EXCLUDE_BLUETOOTH=1
|
||||
-D MESHTASTIC_EXCLUDE_WEBSERVER=1
|
||||
-D MESHTASTIC_EXCLUDE_SERIAL=1
|
||||
-D MESHTASTIC_EXCLUDE_SOCKETAPI=1
|
||||
-D INPUTDRIVER_I2C_KBD_TYPE=0x55
|
||||
-D INPUTDRIVER_ENCODER_TYPE=3
|
||||
-D INPUTDRIVER_ENCODER_LEFT=1
|
||||
|
@ -41,6 +41,8 @@ build_flags =
|
||||
-D MESHTASTIC_EXCLUDE_INPUTBROKER=1
|
||||
-D MESHTASTIC_EXCLUDE_BLUETOOTH=1
|
||||
-D MESHTASTIC_EXCLUDE_WEBSERVER=1
|
||||
-D MESHTASTIC_EXCLUDE_SERIAL=1
|
||||
-D MESHTASTIC_EXCLUDE_SOCKETAPI=1
|
||||
-D INPUTDRIVER_BUTTON_TYPE=21
|
||||
-D MAX_NUM_NODES=200
|
||||
-D MAX_THREADS=40
|
||||
|
Loading…
Reference in New Issue
Block a user