forked from e-mission/e-mission-data-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🗃️ Save the BLE callbacks as sensor data
Consistent with e-mission/e-mission-docs#1062 (comment) store the BLE scan results so that we can use them while matching the mapping While storing the changes, I realized that the region enter and exit calls returned a CLBeaconRegion object and the range scans returned a CLRegion object. e-mission#220 (comment) This needed us to change the wrapper class as well: - Add a new initFromCLBeaconRegion that only copies non-range values and sets default values for the range values (proximity, accuracy and rssi) - Change the existing initFromCLBeacon to not need an event type, since it is only called for the scans, and the event type is always `RANGE_UPDATE` in that case. Testing done: - Compiled - Launched the app - Note that we cannot test this code without a physical beacon, but it is very straightforward and compiles. The only reason why it may fail is if values are not filled out in unexpected ways.
- Loading branch information
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters