Skip to content

ESP32 BLE: log disconnect and authentication failure reasons - #3831

Draft
gmaijoe wants to merge 1 commit into
meshcore-dev:devfrom
gmaijoe:fix/esp32-ble-diagnostics
Draft

gmaijoe wants to merge 1 commit into
meshcore-dev:devfrom
gmaijoe:fix/esp32-ble-diagnostics

Conversation

@gmaijoe

@gmaijoe gmaijoe commented Nov 13, 2026 •

Copy link
Copy Markdown

ESP32 BLE disconnect logs currently omit the stack reason, making recurring iPhone timeouts difficult to investigate. Log the disconnect connection ID, reason and uptime, and include the authentication failure reason. Connection handling is unchanged; the additional fields remain behind BLE_DEBUG_LOGGING and contain no PINs, peer addresses or message contents.

The Heltec V4 TFT BLE firmware build passes. Hardware testing on a Heltec V4 TFT running v1.18.0 plus this patch, #3832, and a local Bluetooth-name length guard captured recurring disconnect reason 0x08 (connection timeout), successful authentication between reconnects, and increasing uptime. This confirms that the added diagnostics work; it does not fix the disconnects reported in #1835.

Draft for human review and hardware validation, opened at the contributor's explicit request. Prepared with AI assistance; human line-by-line review is still pending. Related broader BLE migration: #3633.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant