beacon-scanner-library icon indicating copy to clipboard operation
beacon-scanner-library copied to clipboard

Move configuration to parent project to better support using library as a submodule

Open tstellanova opened this issue 3 years ago • 2 comments

The problem:

It's often desirable to include BeaconScanner as a submodule within another project. Currently, users can't easily do this because configuring the library to strip some beacon types at compile time requires modifying a file (config.h) internal to the library.

Suggested solution:

Externalize the config file so that the parent (application) project needs to declare which beacon types it's interested in. This allows the parent project to include the BeaconScanner library, unmodified, as a submodule. Update the readme and examples to demonstrate how to include the config file before BeaconScanner.h

tstellanova avatar Jul 18 '21 13:07 tstellanova