StanfordBDHG / NAMS

Platform for EEG data collection from Bluetooth-enabled devices.
MIT License
5 stars 0 forks source link

Biopot characteristic 4 parsing #44

Closed MihirJoe closed 7 months ago

MihirJoe commented 9 months ago

BIOPOT Parsing Code for Characteristic 4 Data Stream

:recycle: Current situation & Problem

There is no way to currently parse and interpret the data captured by the BIOPOT device apart from the device configuration and specs. This PR implements code, using Swift NIO, to store the relevant bytes based on the BIOPOT documentation. Since each channel per sample contains low and high values, they are stored as an array.

:gear: Release Notes

There is currently an issue in the code with encoding the bytes to UInt8 objects. Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.

:books: Documentation

Please ensure that you properly document any additions in conformance to Spezi Documentation Guide. You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.

:white_check_mark: Testing

Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested. This section describes important information about the tests and why some elements might not be testable.

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: