Tigge / openant

ANT and ANT-FS Python Library
MIT License
174 stars 80 forks source link

Update ant.py, node.py, channel.py, scan.py #63

Closed pirower closed 1 year ago

pirower commented 3 years ago

Update ant.py Add of functionalities to unassign a channel in function unassign_channel Add of message IDs for unassigning a channel and closing a channel in function _worker

Update node.py Change of node variable channels from "list" to "array". At initialisation an array of the length of maximum number of possible channels is generated using the "get_capabilities" funciton Introduction of the function "get_capabilities" by using the "Message.ID.RESPONSE_CAPABILITIES" to get the capabilities of the ant+ chip. Add of functionality of threading of 'node'.

Update channel.py Add of functionality to unassign a channel in function _unassign

Update scan.py Proper closing and unassigning of the channel for scanning.

tuna-f1sh commented 1 year ago

Closing as I added this functionality in more or less the same way with #76. If you feel something is missing, feel free to make a new PR with the updated code.