Current State
In BleTranceiver, we poll for connection (device, service, characteristics) and subscribe in the main thread. We could be waiting indefinitely for the correct device and block the main Unity thread.
Target State
Consider adding a thread for connection/subscribe functions.
Note: This may not be a super big deal since we can't do much if we aren't connected to the RevEx wearable anyway. I created this just in case we may need to do some setup things in Unity while we wait on the Bluetooth connection or if there is some other issue with this approach.
Current State
In
BleTranceiver, we poll for connection (device, service, characteristics) and subscribe in the main thread. We could be waiting indefinitely for the correct device and block the main Unity thread.Target State
Consider adding a thread for connection/subscribe functions.
Note: This may not be a super big deal since we can't do much if we aren't connected to the RevEx wearable anyway. I created this just in case we may need to do some setup things in Unity while we wait on the Bluetooth connection or if there is some other issue with this approach.