To "turn off the bluetooth" I use the command:
For example, the idea is to put the sensors to sleep, especially the bluetooth when I go to bed or when I don't want connections.
So the general line is I set the setting and don't use any other apps for a while.
I wish I could do everything from one of my apps.
So you confirm that all the apps on the device check the setting in settings.json?
I fear more there is anarchy and everyone activates and deactivates the sensors as needed.
Wouldn't it make sense to have a reference layer that apps need to verify in order to proceed? (maybe it might already be the settings.json file)
A little bit what happens on all the various devices, if I activate an app that requires bluetooth, it warns me that it is disabled and requires activation.
Then I don't know if it's feasible in practice ..