Auto-detect upload port via ID? serial query (issue #11) #13
No reviewers
Labels
No labels
bug
bug
critical
documentation
duplicate
enhancement
enhancement
feature
good first issue
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eddy/Project_SylDa!13
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-11-portable-upload-port"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Removes hardcoded
upload_portfromplatformio.iniand replaces it with automatic detection via a newID?serial command.Changes
Firmware:
main.cpp:ID?→ respondsSylDa_Serverclient.cpp:ID?→ respondsSylDa_ClientScript:
tools/pio_upload_port.py(POST-script)/dev/serial/by-id/usb-Espressif_*for ESP32 portsID?on each, match with expected identityenv.AddPreAction("upload", callback)— only runs on upload targetpyserial(graceful fallback if missing)platformio.ini:
upload_portfrom both environmentspost:tools/pio_upload_port.pytoextra_scriptsCloses #11