niolabs / python-xbee

Python tools for working with XBee radios
MIT License
101 stars 45 forks source link

thread problem #36

Closed liutairan closed 7 years ago

liutairan commented 7 years ago

I am using python-xbee for a little complex case which thread will be used. I am able to request data from API mode coordinator to AT mode router in normal cases, but once I put the code in a thread (actually using "threading") it will never able to read any frame.

I know this should be something related to thread safety things. Then how to solve this problem?

Thanks~

hansmosh commented 7 years ago

This doesn't sound like an issue with the library. You'll find more help from the community by posting your issue to Stack Overflow and including the tags python and xbee. Include example code where you are seeing this issue so we can help trace down the issue.

Go ahead and respond to this comment with a link to your post on Stack Overflow so that anyone who comes across this can find your question (and hopefully an answer) there.

liutairan commented 7 years ago

No, it is not. I think it should come from the thread related things because this library uses thread. I will check online how to fix this. Thanks anyway.