Enable ESP32-S3 to reach api.telegram.org and api.anthropic.com through an HTTP CONNECT proxy (e.g. Clash Verge), required in regions where these services are blocked. - New proxy module (http_proxy.c/h): CONNECT tunnel + TLS via esp_tls with pre-connected socket injection (esp_tls_set_conn_sockfd) - Telegram and LLM modules split into direct/proxy paths - CLI commands: set_proxy <host> <port>, clear_proxy - Proxy config persisted in NVS - Fix TLS buffer: MBEDTLS_SSL_IN_CONTENT_LEN 4096 → 16384 - Increase task stacks for TLS overhead (poll 12KB, agent 12KB, outbound 8KB) - Default model changed to claude-opus-4-6 - Capture raw error body for non-200 API responses Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1010 B
Plaintext
40 lines
1010 B
Plaintext
# MimiClaw - ESP32-S3 Target Configuration
|
|
CONFIG_IDF_TARGET="esp32s3"
|
|
|
|
# Flash 16MB + QIO
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
|
|
|
|
# CPU 240MHz
|
|
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
|
|
|
|
# PSRAM 8MB Octal
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_MODE_OCT=y
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=2048
|
|
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=98304
|
|
CONFIG_SPIRAM_MEMTEST=n
|
|
|
|
# WiFi memory optimization
|
|
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=3
|
|
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=6
|
|
CONFIG_ESP_WIFI_RX_BA_WIN=3
|
|
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=16
|
|
|
|
# TLS optimization (PSRAM allocation + small buffers)
|
|
CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y
|
|
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
|
|
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=16384
|
|
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
|
|
|
|
# WebSocket support
|
|
CONFIG_HTTPD_WS_SUPPORT=y
|
|
|
|
# Custom partition table
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
|
|
# Console/UART for CLI
|
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|