Skip to content

[#460] - Option to disable BLE advertising (USB-only mode) - #462

Open
naaraxi wants to merge 2 commits into
RfidResearchGroup:mainfrom
naaraxi:feature/460-ble-advertising-toggle
Open

[#460] - Option to disable BLE advertising (USB-only mode)#462
naaraxi wants to merge 2 commits into
RfidResearchGroup:mainfrom
naaraxi:feature/460-ble-advertising-toggle

Conversation

@naaraxi

@naaraxi naaraxi commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

resolves #460

default is on
turning it off silences the radio and drops any live BLE link

note: you can only change it over USB, so you can't cut off the link you're using

usage:

  • hw settings bleadv --- check status
  • hw settings bleadv -d --- off
  • hw settings bleadv -e --- on
  • hw settings store --- save after enabling/disabling BLE

@github-actions

Copy link
Copy Markdown

You are welcome to add an entry to the CHANGELOG.md as well

@naaraxi
naaraxi marked this pull request as ready for review July 18, 2026 18:47
@GameTec-live

Copy link
Copy Markdown
Contributor

Stupid question: What would be wrong with cutting the active link? As long as the client shows a warning or smthng? I dont think itd break anything? Your connections just gone then until you find something USB capable.

For example iOS can only do BLE, so you cant disable BLE on iOS?

@naaraxi

naaraxi commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

@GameTec-live

Nothing particularly wrong with it, I just figured it's cleaner this way.
If we were to remove the USB gate, and you cut the connection while you're connected via BLE, the setting is in memory and will persist until the next reboot / wake from deep sleep (at which point it will read the flash and re-enable BLE).
Saving the setting when the only way to connect to it is via BLE would essentially render it useless, so I'd advise against implementing something like that.

@GameTec-live

Copy link
Copy Markdown
Contributor

Oh right, because you couldnt send the save command at this point?

@naaraxi

naaraxi commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

Correct. It's possible to add a save to it, but I really wouldn't do that :D

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.

Option to disable BLE advertising (USB-only mode)

2 participants