Repository navigation
raft new: hardware routes, connectivity, OTA, sensor sets; raft detect; saved answers - #5
Merged
Merged
Conversation
…, OTA, sensor sets, decoding; raft detect; saved answers - Hardware: detected from a connected board (esptool flash-id; raft detect), a dev board preset, an Espressif module by ordering code (N<flash>R<PSRAM>, PSRAM mode and reserved pins), or the chip with safe defaults. PSRAM is set in sdkconfig again - Questions: connectivity (WiFi+BLE / WiFi / BLE / none - RAFT_NO_NETWORKING without WiFi), BLE role, web server, OTA (one or two app slots), I2C and sensors (RaftCore's common / extended sets, all, none built in, no I2C), runtime decoding; SysType name, SysMod name, main task core and ESP-IDF version only with --advanced - Partition table from the flash size and OTA; a random WiFi AP password; a summary with an estimated app size - Answers saved in .raftnew.json: raft new --answers, and raft update-project --set to change an answer and update unedited files (edited ones get <file>.raftnew) - Older --set keys are translated - devdocs/raft-new-questions-and-defaults-review.md: the measurements, design and implementation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements
devdocs/raft-new-questions-and-defaults-review.md. Needs robdobsn/RaftCore#30 and robdobsn/RaftSysMods#11 merged first: apps made by thisraft newuseraftcore:@commonandRAFT_NO_NETWORKING, which theirmainmust have.Hardware (one question, four routes)
flash-id(v4 and v5 output). Also available on its own asraft detect(--json). Under WSL it uses Windowsraft.exe detect, or the Windows esptool with an olderraft.exe.src/new_data/boards.json) gives the chip, flash, PSRAM and I2C connector pins.src/new_data/modules.json).N8R2gives 8 MB flash and 2 MB PSRAM; the family gives the PSRAM mode (octal for S3 R8) and reserved pins, which are refused for I2C.sdkconfig.defaultsagain (the question had been commented out since 2024-11).Other questions
RAFT_NO_NETWORKINGgoes infeatures.cmake, and NetMan and WebServer are left out ofSysTypes.json.@common(the new default),@extended, all, none built in, or no I2C.--advanced): SysType name, SysMod name, main task core, ESP-IDF version.--setkeys (use_raft_ble,flash_size_for_partition_table, …) are translated.Also
raftpassword..raftnew.json.raft new --answers <file>reproduces an app.raft update-project --set key=valuere-renders: unedited files are updated, and edited ones get<file>.raftnew.Testing
raft detecton two real ESP32-S3 boards (WSL): 8 MB + 2 MB PSRAM, and 16 MB + 8 MB.Not yet done
🤖 Generated with Claude Code