diff --git a/firmware/main/Kconfig.projbuild b/firmware/main/Kconfig.projbuild index 304e48d..f774c11 100644 --- a/firmware/main/Kconfig.projbuild +++ b/firmware/main/Kconfig.projbuild @@ -1,3 +1,20 @@ +menu "StackChan Features" + +config USE_EZDATA + bool "Enable EzData integration" + default y + help + When enabled (default, production behaviour), the firmware installs + the EzData Mooncake app and connects to M5Stack's cloud at + uiflow2.m5stack.com (MQTT) and ezdata2.m5stack.com (HTTP) for + cross-device parameter sync. + + Disable when self-hosting the StackChan backend and you do not + need EzData. This avoids retry noise in the logs and prevents any + traffic from leaving for M5Stack cloud services. + +endmenu + menu "Xiaozhi Assistant" config OTA_URL diff --git a/firmware/main/main.cpp b/firmware/main/main.cpp index 164a751..26eac3f 100644 --- a/firmware/main/main.cpp +++ b/firmware/main/main.cpp @@ -32,7 +32,9 @@ extern "C" void app_main(void) GetMooncake().installApp(std::make_unique()); GetMooncake().installApp(std::make_unique()); GetMooncake().installApp(std::make_unique()); +#if CONFIG_USE_EZDATA GetMooncake().installApp(std::make_unique()); +#endif GetMooncake().installApp(std::make_unique()); GetMooncake().installApp(std::make_unique());