Repository navigation
Allow the user to set a custom bluetooth name using the cli - #3754
Conversation
|
They should implement this and move the default Meshcore - into this method. I think that would solve everything. |
From the way the backend code is written it looks like the Bluetooth name is intended to have a separate prefix (which can be changed at compile time) followed by the node name. I mean I could add another command to change the prefix as well but let's see what the maintainers think about this first. |
1cdd9c5 to
2d44e14
Compare
|
Hey, thanks for the PR @netrunnereve, I've left some comments in the review above.
We could possibly check if a custom name was set. If so, don't add the prefix. If a custom name is not set, add the prefix by default. That way users that want to hide that it's a MeshCore device, don't see the This could probably be done by passing in an empty string as prefix in |
2d44e14 to
0dbf8f6
Compare
|
Okay I think this covers everything! |
This fixes #1243 by letting the user set their own bluetooth name using the cli. If there's no custom name set it'll automatically use the node name instead.
Note that this doesn't let them change the "Meshcore-" prefix as that apparently breaks some apps. If someone really wants to change that they'll have to build the firmware manually with a different
BLE_NAME_PREFIX.This acts as a workaround for #1769 as well since you now can just set a shorter name manually. I tested this on my Heltec v4 companion and it's working fine with a custom name set.