mynewt-nimble icon indicating copy to clipboard operation
mynewt-nimble copied to clipboard

NimBLE supports to disable BLE GATT client or server

Open donghengqaz opened this issue 2 years ago • 1 comments

Hi,

I am aiming to developing software in very low-cost SoC platform, and in my application I just need GATT service to configure parameters, so GATT client can be dropped, but this requirement seems not implement. Do you have any plan about this ?

donghengqaz avatar Sep 20 '23 09:09 donghengqaz

Hi,

Hmm yes, we don't have global config to disable GATT client but you should be able to reduce code side by disabling GATT client procedures BLE_GATT_DISC_ALL_SVCS, BLE_GATT_DISC_SVC_UUID etc (check nimble/host/syscfg.yml)

You may also want to disable GAP roles you don't need (ie central or peripheral)

sjanc avatar Oct 03 '23 14:10 sjanc