#include "commissioning.h" #include "esp_log.h" namespace { constexpr const char *TAG = "kvida_os"; } extern "C" void app_main(void) { ESP_LOGI(TAG, "kvida-os starting"); // First boot / no stored Wi-Fi credentials -> fall straight into // commissioning (nothing to protect yet, so no physical-interaction // gate needed here). Re-entering commissioning on an already-configured // device should require a physical trigger (e.g. the user button) per // AGENTS.md's security principle -- not wired up yet since `drivers` // doesn't have a real button implementation. if (!kvida::try_stored_credentials()) { kvida::start_commissioning(); } }