cujomalainey / antplus-arduino

An Implementation of the ANT+ Network on top of ant-arduino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor channel setup in router for better runtime support

cujomalainey opened this issue · comments

Currently, the router does not handle unsetting or closing channels properly when replaced which is very important for search lists in the future or for profiles that use multiple channels, also in future development. The API should be updated to handle return codes such as CHANNEL_ALREADY_IN_USE when explicit channels are being set or ALL_CHANNELS_IN_USE. Another would be getNextAvaialbleChannel or getProfilesChannel(profile).

This is in develop and will be merged into the next release