Skip to content

Comments

Fix BLE name fallback to T1000-E-BOOT for long node names#1801

Open
andrewdefilippis wants to merge 1 commit intomeshcore-dev:devfrom
andrewdefilippis:t1000e-ble-name-fix-v2
Open

Fix BLE name fallback to T1000-E-BOOT for long node names#1801
andrewdefilippis wants to merge 1 commit intomeshcore-dev:devfrom
andrewdefilippis:t1000e-ble-name-fix-v2

Conversation

@andrewdefilippis
Copy link

@andrewdefilippis andrewdefilippis commented Feb 22, 2026

Fixes #1769; concatenates head and tail of name to fix BLE name length constraint.

The Nordic SoftDevice S140 defaults to a 31-byte maximum GAP device
name. When "MeshCore-" (9 bytes) + node_name exceeds 31 bytes (i.e.
node names >= 23 chars), sd_ble_gap_device_name_set() silently fails
and the name falls back to USB_PRODUCT ("T1000-E-BOOT").

Add UTF-8 safe middle-truncation that preserves the beginning and end
of the node name (where users place emoji and device-type identifiers),
fitting the result within the 29-byte scan response limit so it
advertises as COMPLETE_LOCAL_NAME.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@andrewdefilippis
Copy link
Author

Verified fixed on my updated device. I have two T1000-E devices. Screenshot shows updated versus not updated device naming.

image

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