Skip to content

Stuck on waitForMessage  #28

Description

@tauzm

Hello, I'm trying to use your library to get live data from ant+ devices. I managed to get live data from the device after changing couple of stuff on the driver.py. but the problem is i need to connect multiple devices simultaneously.And i get an error on the second one saying Resource busy.I saw in couple of codes you have a method called get first free channel. The problem is those demos get stuck on waitForMessage. I can only make it work on the demo 08. Is there a way to make that code find a freechannel ? Or how can i not get stuck on waitForMessage in other examples ? Thanks for the help. Below is the message i get when i try to use demo 04.

^CTraceback (most recent call last):
File "04-processevents.py", line 31, in
antnode.start()
File "/home/talha/Desktop/device2 (copy)/demos/ant.core/node.py", line 165, in start
self.init()
File "/home/talha/Desktop/device2 (copy)/demos/ant.core/node.py", line 191, in init
caps = self.evm.waitForMessage(message.CapabilitiesMessage)
File "build/bdist.linux-x86_64/egg/ant/core/event.py", line 176, in waitForMessage
self.msg_lock.release()
KeyboardInterrupt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions