Copyright ©

Mongoose OS Forum


Enable/Disable Bluetooth on ESP32

Hello all,

I am trying to Enable/Disable bluetooth functionality on ESP32. Only when the button is pressed in a pattern(say 3 times) the bluetooth have to be initialised.
Otherwise bluetooth has to be disabled, since the bluetooth functionality would drain the battery. I thought of calling mgos_bt_common_init(), in the interrupt handler for the button , but not sure of any api to disable the bluetooth functionality. Appreciate if anyone can throw some points to the solution.



Sign In or Register to comment.