I updated the generic_handler function taking into account the following granularity rules:
| BEACON CONFIGURATION | REQUEST LEVEL | RESULT |
|---|---|---|
| BOOLEAN | BOOLEAN or COUNT or RECORD | BOOLEAN |
| COUNT | BOOLEAN | BOOLEAN |
| COUNT | COUNT or RECORD | COUNT |
| RECORD | BOOLEAN | BOOLEAN |
| RECORD | COUNT | COUNT |
| RECORD | RECORD | RECORD |
| (not provided) | BOOLEAN |
I performed local tests adapting the configuration of the local beacon and results were returned as defined by previous table.