Ahh - ok, so what happens with settings is the settings app changes settings.json as you note. Then, on the next boot, bootupdate.js is called, and that created a new JS file that runs at boot to set everything up.
Basically you just call Bluetooth.setConsole(true); at startup. That forces the console to stay on Bluetooth all the time. If Bluetooth isn't connected, anything that's written just gets thrown away.
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.
Ahh - ok, so what happens with settings is the settings app changes settings.json as you note. Then, on the next boot,
bootupdate.js
is called, and that created a new JS file that runs at boot to set everything up.The specific line you want is https://github.com/espruino/BangleApps/blob/41b3224e3f0854e8ec760157f732b4727f6801e1/apps/boot/bootupdate.js#L38
Basically you just call
Bluetooth.setConsole(true);
at startup. That forces the console to stay on Bluetooth all the time. If Bluetooth isn't connected, anything that's written just gets thrown away.