generated from CubeCraft-Creations/Tracehound
firmware: fix C6 filesystem provisioning (LittleFS) + ESP-01S env
The C6 never loaded its /config.json, so it fell back to defaults
(SSID RemoteRig, empty password) and couldn't join Wi-Fi. Two bugs:
- Data file was named esp32-config.json but the firmware reads
/config.json → renamed to config.json.
- Firmware used SPIFFS while pioarduino's uploadfs builds a LittleFS
image; the SPIFFS mount then reformatted it empty. Switch the C6 to
LittleFS (matches the toolchain default and the ESP-01S).
Also:
- log loaded ssid/broker/camera_id on config load (not the password)
- platformio.ini: land the ESP-01S env retarget (board d1_mini ->
esp01_1m, dout, upload_speed 115200) that was missed in 403e1d9
- committed config.json keeps wifi_password blank; the real value is
flashed to the device, not stored in git
Verified: C6 loads config and associates (got a DHCP lease). MQTT to
the broker is a separate network issue (hub IP / subnet).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+11
-6
@@ -27,20 +27,25 @@ lib_deps =
|
||||
build_flags =
|
||||
-D CORE_DEBUG_LEVEL=0
|
||||
|
||||
; ── ESP8266: Camera Bridge ──────────────────────────────────
|
||||
; Flashed onto D1 Mini. Talks to GoPro over Wi-Fi, relays to
|
||||
; ESP32 over UART (TX/RX pins). No MQTT, no router connection.
|
||||
; ── ESP-01S: Camera Bridge ──────────────────────────────────
|
||||
; Flashed onto an ESP-01S (ESP8266, 1MB flash). Talks to the GoPro
|
||||
; over Wi-Fi, relays to the XIAO over the hardware UART (GPIO1/3).
|
||||
; No MQTT, no router connection.
|
||||
;
|
||||
; Flash with a 3.3V USB-UART adapter: tie GPIO0 → GND, power up /
|
||||
; reset into bootloader, then upload. ESP-01S flash is qio/dout;
|
||||
; keep upload_speed modest for adapter reliability.
|
||||
|
||||
[env:esp8266-camera]
|
||||
platform = espressif8266
|
||||
board = d1_mini
|
||||
board = esp01_1m
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
upload_speed = 921600
|
||||
upload_speed = 115200
|
||||
lib_deps = ${common.lib_deps}
|
||||
build_flags = ${common.build_flags}
|
||||
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED
|
||||
board_build.flash_mode = dio
|
||||
board_build.flash_mode = dout
|
||||
board_build.f_cpu = 160000000L
|
||||
build_src_filter =
|
||||
-<*.cpp>
|
||||
|
||||
Reference in New Issue
Block a user