Harden HFP call controls and add runtime peer MAC configuration #3
Reference in New Issue
Block a user
Delete Branch "codex/set-up-environment-for-bluetooth-hfp"
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?
Motivation
Description
src/main.cppto add a runtime peer configuration command (p <mac>) with MAC parsing/validation and persistent runtime string for the peer address, replacing reliance on a single hard-coded MAC constant.g_hfpReady,g_hfpConnected) and checks before performingconnect,disconnect,dial,answer,endandvolumeoperations.rejected while active/outgoing calls useterminate, and improved state transitions (auto-answer on off-hook during ringing and auto-end on on-hook during active call).printStatus/printHelp, normalized pin/variable names, and maintained clear ESP32-S3 fallback stubs when Classic BT is not available.README.mdto documentp <mac>and serial commands, and adjustedplatformio.inimulti-env ordering.Testing
python3 -m pip install --user platformioand the install completed successfully.~/.local/bin/platformio run -e esp32dev, and the build completed successfully (SUCCESS).~/.local/bin/platformio run -e esp32-s3-devkitc-1, and the build completed successfully (SUCCESS).Codex Task