feat(cap_time): add sntp and time context provider

This commit is contained in:
zhouli
2026-04-23 13:38:46 +08:00
parent 51536183cf
commit 6f7d59da27
6 changed files with 183 additions and 176 deletions
+1
View File
@@ -408,6 +408,7 @@ esp_err_t app_claw_start(const basic_demo_settings_t *settings)
ESP_RETURN_ON_ERROR(claw_core_add_context_provider(&claw_skill_active_skill_docs_provider), TAG, "Failed to add active skill docs provider");
ESP_RETURN_ON_ERROR(claw_core_add_context_provider(&claw_cap_tools_provider), TAG, "Failed to add cap tools provider");
ESP_RETURN_ON_ERROR(claw_core_add_context_provider(&cap_lua_async_jobs_provider), TAG, "Failed to add Lua async jobs provider");
ESP_RETURN_ON_ERROR(claw_core_add_context_provider(&cap_time_context_provider), TAG, "Failed to add time context provider");
ESP_RETURN_ON_ERROR(claw_core_add_completion_observer(cap_lua_honesty_observe_completion, NULL), TAG, "Failed to install Lua honesty observer");
ESP_RETURN_ON_ERROR(claw_core_start(), TAG, "Failed to start claw_core");
@@ -29,3 +29,4 @@ CONFIG_MMAP_FILE_NAME_LENGTH=32
CONFIG_SPIRAM_XIP_FROM_PSRAM=y
CONFIG_EMOTE_DEF_BG_COLOR=0x171617
CONFIG_CLAW_CORE_STAGE_VERBOSITY_VERBOSE=y
CONFIG_LWIP_SNTP_MAX_SERVERS=2