Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
This was my first attempt at working with ANT+, as well as my first time doing anything even remotely low-level with JavaScript. So I'm probably getting a few things wrong.
In particular, I'm not so sure what data I'm actually getting back when I receive the
CHANNEL_TYPE_ONEWAY_RECEIVE
event. It's 3 bytes long but the spec sheet doesn't show anything like that being broadcast on the channel. It seems to always be consistent, so I'm treating it as the DeviceID, which might be completely false! If you're aware of what's actually being broadcast here, I'm happy to fix it up.Spec sheet: https://www.thisisant.com/resources/bicycle-speed-and-cadence/
Closes #3