Skip to content

BLE name overiden with "usb_product" name if too long #1769

Description

@spfmoby
  1. flash a T1000e (that's what I have on hand) with any recent bluetooth companion firmware (I tried both 1.12, 1.13 and even a nightly)
  2. with the meshcore app, connect to the device, and set a name of 23 chars or longer (just simple alphanum chars are enough to create the problem)
  3. reboot the device

Next time when you want to connect to the node, the Bluetooth name displays "T1000-E-BOOT" instead of the "Meshcore-nameofthedevice").
The "T1000-E-BOOT" is the name that is set as "usb_product" in boards/tracker-t1000-e.json

What is really weird is that if you set a device name of 22 chars, the BLE name is correct AND trimmed to its firsts 20 chars.

Suggestion: whatever node name length is set, just use the trimmed name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions