Update 3
Vortex App – Device Status and Timeout Enhancements
Originally, our Vortex App's handling of device connectivity was somewhat limited in terms of responsiveness and accuracy. To address this, we've implemented several key improvements that streamline the connection process and ensure accurate device status reporting.
Enhanced BLE Timeout Handling:
We have added a 60-second timeout in BLEService. If no device connects within this period, the connection attempt is automatically terminated. This prevents unnecessary resource usage and helps keep the system responsive.
Additionally, the connection timeout has been reduced from 10 seconds to 5 seconds. This means that if a connection cannot be established quickly, the attempt is aborted sooner, resulting in a faster and more fluid user experience.
Improved Device Status Tracking:
A new deviceStatusMap has been integrated into ConnectedDeviceManager.java. This map allows us to continuously monitor whether a specific device is connected.
Correspondingly, PreferenceManager now returns the current status of each device. This update ensures that the app always displays accurate connectivity information.
UI and Data Handling Fixes:
Minor fixes have been applied to the logic for saving device information, ensuring that any changes are reliably stored.
The updateTheUI() function has been corrected so that the pairButton now accurately reflects the device’s connection state, both in its text and functionality.
Library Update:
We have updated APG from version 8.8.0 to 8.8.1, ensuring compatibility with our latest changes and improved stability.
Together, these enhancements reduce latency in device connectivity and provide more reliable, up-to-date status information, leading to a smoother, more responsive user experience.
You can visually verify these improvements on our GitHub under the commit titled "Fixed device status and added a timeout to BLEService."