zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.67k stars 2.74k forks source link

Cannot turn off Bluetooth with config (NRF52840 supermini) #2354

Closed rorymcd98 closed 2 months ago

rorymcd98 commented 3 months ago

I have this board, It mimics a Nice!Nano so I have selected the Nano while building my firmware.

I am just using the board in wired mode (I don't need bluetooth / wireless). My concern is that anyone can connect to my keyboard at any time.

This is my whole config:

# Uncomment the following lines to enable the Corne RGB Underglow
# CONFIG_ZMK_RGB_UNDERGLOW=y
# CONFIG_WS2812_STRIP=y

# Uncomment the following line to enable the Corne OLED Display
# CONFIG_ZMK_DISPLAY=y
CONFIG_BT=n
#Uncommenting the below was giving me issues
#CONFIG_BT_MAX_CONN=0

Expect: My keyboard not to be connectable to via bluetooth.

Current: My keyboard is on bluetooth and any device can connect to it.

This is my whole repo: https://github.com/rorymcd98/zmk-config

lesshonor commented 3 months ago

You could try setting CONFIG_BT_MAX_CONN=1 and CONFIG_BT_MAX_PAIRED=1.

While there are some pull requests you can experiment with, ZMK currently has no official support for wired splits; unless/until that is implemented, the peripheral half will always connect to the central half using BLE.

rorymcd98 commented 2 months ago

@lesshonor thanks, this didn't really work because it disabled pairing alltogether (even when I bumped to 2 connections). But this is not a major concern for me any more.

Feel free to close he issue.