You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to poll a Garmin Glo once per second from a Raspberry Pi 3 over Bluetooth and I am frequently getting a "Device or resource busy" error. My code is below. Is there a better way to architect this workflow?
The reason that you might be getting these are the quick successive calls to BluetoothSocket() and BluetoothSocket().close(). If the clean-up of the close-call takes longer than your 1 second sleep and the write(), your BluetoothDevice will still be blocked when you try to reopen the socket. Consider creating it and connecting once, leaving it open and only using recv in getLocation().
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
PyBluez is not under active development, but we still accept pull requests!
If you've resolved your issue, please post your solution and close this issue. Future users will benefit from the knowledge you share. Thank you.
I am trying to poll a Garmin Glo once per second from a Raspberry Pi 3 over Bluetooth and I am frequently getting a "Device or resource busy" error. My code is below. Is there a better way to architect this workflow?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: