Comment
Major refactoring.
This will make my BLEManager much more general and easy to use in different plugins.
The refactoring is not finished, todo:
make BLEManager a singleton
concurrency issues
implement the scheduling logic
test everything (need to create a new project)
refactoring continued
Dropped Singleton idea. Instead instantiate the manager in each plugin. Hope the BluetoothAdapter behaves correctly.
Still need to implement the scheduling logic.
Went from 2 handler to a single one that should alternate between resting/scanning periods.