esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

Compilation fails if CONFIG_BT_NIMBLE_ROLE_BROADCASTER not defined

Open arjanmels opened this issue 4 years ago • 1 comments

If CONFIG_BT_NIMBLE_ROLE_BROADCASTER is not defined then startAdevrtising, SstopAdvertising are not defined nin NimBLEDevice, but are used in other parts.

arjanmels avatar Jul 14 '21 10:07 arjanmels

If you are not using the broadcaster role then you should also disable the peripheral role and it will work. I'll address this with a macro in a future patch.

h2zero avatar Jul 14 '21 18:07 h2zero