In a very early state I found a way to switch BLE on or off under testing.
Workflow right now is like this
added an ESP32 specific command (ESP32enableBLE(mode);)
this functions stores a flag in Flash (in the moment partition free)
HWreset the board
during startup, read the flag from Flash, and according to that init BLE, or not
Results in my test environment is heap of 103388 to 74252.
This would be around 2000 additional jsVars, if BLE is not used
Before making this nicer, better tested etc, I've some questions
Should we use partition free, or is there a better place ?
Do we need a message during startup, that BLE is disabled ?
Is there a way to make NRF, Bluetooth and others inactive, so they cannot be called by accident ?
Is there an option to use of HWReset ?
some other questions, not comin to my mind right now ;-)
what should be default setting, with or without BLE ?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In a very early state I found a way to switch BLE on or off under testing.
Workflow right now is like this
Results in my test environment is heap of 103388 to 74252.
This would be around 2000 additional jsVars, if BLE is not used
Before making this nicer, better tested etc, I've some questions